开发者

automatically close batch file when done

开发者 https://www.devze.com 2022-12-16 20:27 出处:网络
How would I make this close itself when its done? copy h2.cfg default开发者_StackOverflow社区.cfg /y

How would I make this close itself when its done?

copy h2.cfg default开发者_StackOverflow社区.cfg /y
c:
cd "c:\program\reba"
"c:\program\reba\reba.exe"

i tried adding:

cls
@exit

in the end but i didnt work

edit: i want the cmd window to close when reba has loaded


You'll need to run reba.exe in the background.

The shell command START should do the trick for you. Here is some documentation on it:

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

I think you can say something like

START "" "c:\program\reba\reba.exe"

in your batch file (i.e. just add the START).

0

精彩评论

暂无评论...
验证码 换一张
取 消