Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to be able to double click it and it runs the correct (non default) browser and opens my preferred website?

share|improve this question
1  
Why would you want to do this rather than create a bookmark? –  ChrisW Oct 1 '12 at 15:45
    
I want this to sit on my desktop. I'm using windows 7 - so typically a url will open with IE, but I want to specify that it open with a diff browser, something you can't do with Windows7 built in url creator. This used to be done in WindowsXP and earlier also –  VISQL Oct 1 '12 at 15:49
1  
Not such a strange nor bad question. I do this with a simple bat-file as I showed in my answer below. I use Firefox for everything except my banking that demands IE. So I have a bank.bat that launches IE and takes me to the correct site. –  Nifle Oct 1 '12 at 16:16

5 Answers 5

  1. Create a new shortcut (Right-click->New->Shortcut)
  2. Point the shortcut to the executable of your browser of choice ("C:\Program Files\Mozilla\Firefox\firefox.exe")
  3. Add the URL you wish to go to after the executable ("http://kongregate.com") New shortcut creation screen
  4. Name the shortcut whatever you want.
  5. Profit.
share|improve this answer
2  
@VISQL - The answer clearly tells you how and when to select what browser you want to use for that particular url. –  Nifle Oct 1 '12 at 16:40

An alternative is to create a shortcut on your desktop (Right click > New > Shortcut) and point it at a website.

share|improve this answer
    
Thanks. That doesn't allow me to choose the browser though, such as with other user-created files. I don't want it to open with IE. However, that is the only option when creating a Windows shortcut in which a url is placed. –  VISQL Oct 1 '12 at 15:54

If you insist on doing this with an HTML file, you could put this in your file:

<html>
  <head>
    <meta http-equiv="Refresh" content="0;url=http://www.example.com">
  </head>
  <body>
  </body>
</html>

That will automatically redirect to the linked URL. Select the browser by right-clicking and selecting "Open with..." and picking the browser you want to use.

share|improve this answer
    
And how will this open in the correct browser? –  Nifle Oct 1 '12 at 16:13
1  
@Nifle I have no idea. But he keeps insisting that this must be done with an HTML file. Your answer and my previous answer are both perfectly good ways to do this, but he seems opposed to anything not done in HTML. –  Ryan Oct 1 '12 at 16:14

I suggest you create a simple bat file.

Put this in a textfile on your desktop and then rename it to amazon-with-chrome.bat or something.

start C:\Users\YOUR-WINDOWS-USER-NAME\AppData\Local\Google\Chrome\Application\chrome.exe http://www.amazon.com

It launches chrome.exe and loads amazon.com you. You need to replace http://www.amazon.com and YOUR-WINDOWS-USER-NAME at a minimum.
If you want to use another browser (or if you have chrome installed somewhere else) you have to change the path too.

share|improve this answer
    
I like this! Never seen it done with batch file. This is exactly the functionality I was looking for. Thanks. –  VISQL Oct 1 '12 at 16:24

What I was looking for was something like this http://www.webworkshop.net/auto-redirecting_methods.html

Auto-redirect metatag.

By making it an html file, I can edit which browser it opens with

Enter htmlcode into a  TXT file Click to change the .txt extension

Change the extentsion to html

Yes. It's ok.

File becomes an html file

Double-click open to the webpage you entered

You can choose what to open it with

You can change with browser it opens with by default. Hooray.

share|improve this answer
    
Please crop your pictures. –  ekaj Oct 1 '12 at 20:30
    
lol. I'll shrink them next time, but context is good, no? –  VISQL Oct 2 '12 at 0:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.