完成后自动关闭批处理文件

时间:2010-01-17 00:21:16

标签: batch-file

当它完成后我怎么能把它关闭呢?

copy h2.cfg default.cfg /y
c:
cd "c:\program\reba"
"c:\program\reba\reba.exe"

我尝试添加:

cls
@exit

最后但我没有工作

编辑:我希望在加载reba时关闭cmd窗口

1 个答案:

答案 0 :(得分:4)

您需要在后台运行reba.exe

shell命令START应该为你做的伎俩。以下是一些文档:

http://ss64.com/nt/start.html

我想你可以说像

START "" "c:\program\reba\reba.exe"
批处理文件中的

(即只需添加START)。

相关问题