M
M
Mercury132018-05-19 19:08:33
cmd/bat
Mercury13, 2018-05-19 19:08:33

Start xxx.bat: how to make it not fall out to the command line?

I have a build script for two versions of the same program with blackjack and a self-written join in the form of if not exist goto. Here is his scaled-down model.

===== 1.bat =====
start 2.bat
echo Something long here!
pause

===== 2.bat =====
echo Something long here!
pause

The problem is that 2.bat, after executing the pause command, falls out to the command line. How can I make sure he doesn't?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2018-05-19
@Mercury13

As an option, put the exit command after pause, the same will close the console. Then at the start you can not specify cmd / c

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question