Open a Web Page in a Windows Batch FIle

Ian Vink picture Ian Vink · Oct 6, 2014 · Viewed 273.4k times · Source

I have a batch file that does a bunch of things and at the end needs to open up a web browser to a page. Is there a way to, in essence, call ShellExecute on a http to open the web page?

Windows Command Prompt

Answer

Ross Ridge picture Ross Ridge · Oct 6, 2014

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.