我如何运行一个批处理文件的程序,而无需控制台打开程序启动后? [英] How can I run a program from a batch file without having the console open after the program start?

查看:92
本文介绍了我如何运行一个批处理文件的程序,而无需控制台打开程序启动后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关此刻我的批处理文件是这样的:

For the moment my batch file look like this:

myprogram.exe param1

该程序启动,但DOS窗口还开着。我怎么能收呢?

The program start but the Dos Windows still 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屋!

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