I want to be able to double click it and it runs the correct (non default) browser and opens my preferred website?
- Create a new shortcut (Right-click->New->Shortcut)
- Point the shortcut to the executable of your browser of choice (e.g., "C:\Program Files\Mozilla\Firefox\firefox.exe")
- Add the URL you wish to go to after the executable ("http://kongregate.com")
- Name the shortcut whatever you want.
- Double-click the shortcut to open your webpage in the designated browser.
-
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
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.
-
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
An alternative is to create a shortcut on your desktop (Right click > New > Shortcut) and point it at a website.
-
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.
-
1
-
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
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
This is rubbish,
start C:\Program Files (x86)\SRWare Iron\chrome.exe http://www.amazon.com
The above will not work in a Bat file. Only the three main browsers can be opened in a batch file - none of the lesser known clones!
You can create a shortcut by entering the following into the "Type the location of the item":
"C:\Users\Joe Blogs\AppData\Local\Epic Privacy Browser\Application\epic.exe" http://google.com.au
Adapt it by entering your address to the browser you want and the site name.
-
If you formatted your command correctly it might stand a chance of working.
start "" "C:\Program Files (x86)\SRWare Iron\chrome.exe" http://www.amazon.com
. You clearly don't know how to use start properly. – DavidPostill♦ Sep 5 '16 at 17:27 -
This is really a comment and not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead? – DavidPostill♦ Sep 5 '16 at 17:30
bank.bat
that launches IE and takes me to the correct site. – Nifle Oct 1 '12 at 16:16