在Windows批处理文件打开一个网页 [英] Open a Web Page in a Windows Batch FIle
本文介绍了在Windows批处理文件打开一个网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有做了一堆东西,并在年底需要的批处理文件为打开一个网页浏览器,以一个页面。有没有一种办法,实质是调用的ShellExecute
在 HTTP 打开网页?
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命令提示符
Windows Command Prompt
推荐答案
您可以使用启动
命令做同样的事情为的ShellExecute
。例如:
You can use the start
command to do much the same thing as ShellExecute
. For example
start "" http://www.stackoverflow.com
这将启动浏览器无论是默认的浏览器,所以不一定会启动Internet Explorer。
This will launch whatever browser is the default browser, so won't necessarily launch Internet Explorer.
这篇关于在Windows批处理文件打开一个网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文