Automatically close batch file

How would I make it closer when it was done?

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

I tried to add:

cls
@exit

in the end but i didn't work

edit: I want the cmd window to close when reba loads

+3
source share
1 answer

You need to run reba.exein the background.

The shell team STARTshould do the trick for you. Here are some documents about this:

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 START).

+4
source

Source: https://habr.com/ru/post/1728773/


All Articles