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.
I suggest you create a simple
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.
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.
What I was looking for was something like this http://www.webworkshop.net/auto-redirecting_methods.html
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.