程序启动后,如何在不打开控制台的情况下从批处理文件运行程序? [英] How can I run a program from a batch file without leaving the console open after the program starts?
本文介绍了程序启动后,如何在不打开控制台的情况下从批处理文件运行程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我的批处理文件如下所示:
For the moment my batch file look like this:
myprogram.exe param1
程序启动,但 DOS 窗口保持打开状态.我该如何关闭它?
The program starts but the DOS Window remains open. How can I close it?
推荐答案
您可以使用 exit 关键字.这是我的一个批处理文件中的一个示例:
You can use the exit keyword. Here is an example from one of my batch files:
start myProgram.exe param1
exit
这篇关于程序启动后,如何在不打开控制台的情况下从批处理文件运行程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文