CMD脚本:如何关闭CMD [英] CMD Script: How to close the CMD

查看:151
本文介绍了CMD脚本:如何关闭CMD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个小命令,它将使我启动Internet Explorer。但是,我希望关闭启动IE时显示的小命令提示符。我怎样才能做到这一点?这是我当前的代码:

I have created a small command that will let me launch Internet Explorer. However, I wish to close the small command prompt that shows up when I launch IE. How can I do this? This is my current code:

"%ProgramFiles%\Internet
Explorer\iexplore.exe"
http://localhost/test.html
PAUSE

我猜是否取出暂停。关闭IE时,它将关闭CMD框?

I am guessing if I take out the Pause. It will close the CMD box upon closing IE??

还有另一个命令,我可以使用它来简单地创建一个命令,该命令可以让我向菜单中添加一些内容一个小图标,依次运行上面的图标。这复杂吗?我可以使用任何教程吗?

Also is there another command that I can use to simply create a command that will let me add something to the Menu with a small icon, which in turn runs the above. Is this complicated? Any tutorials I can use?

谢谢

推荐答案

使用 start 命令:

start "title" "%ProgramFiles%\Internet Explorer\iexplore.exe" http://www.example.com

这篇关于CMD脚本:如何关闭CMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆