Open a Web Page in a Windows Batch FIle

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 16:02:16

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.

unfortunatly, the best method to approach this is to use Internet Explorer as it's a browser which is garunteed 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
user4481177

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!