Open a Web Page in a Windows Batch FIle

When you use the start command to a website it will use the default browser by default but if you want to use a specific browser then use start iexplorer.exe www.website.com

Also you cannot have http:// in the url.


1.To run from the default browser, use

start http://www.stackoverflow.com

Please make sure that the appropriate browser is set as default at Control Panel-> default program : enter image description here

2.To launch page from specific browser, one can use

start "iexplore.exe" http://www.stackoverflow.com

start "chrome.exe" http://www.stackoverflow.com

start "firefox.exe" http://www.stackoverflow.com

Unfortunately, the best method to approach this is to use Internet Explorer as it's a browser that is guaranteed to be on Windows based machines. This will also bring compatibility of other users which might have alternative browsers such as Firefox, Chrome, Opera..etc,

start "iexplore.exe" http://www.website.com

You can use the start command to do much the same thing as ShellExecute. For example

 start "" http://www.stackoverflow.com

This will launch whatever browser is the default browser, so won't necessarily launch Internet Explorer.