Open a Web Page in a Windows Batch FIle


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

This question is tagged with windows batch-file cmd shellexecute

~ Asked on 2014-10-06 19:59:55

The Best Answer is


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

 start ""

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

~ Answered on 2014-10-06 20:04:31


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"

~ Answered on 2014-10-06 20:04:05

Most Viewed Questions: