Suppress "press any key to continue" in batch script

I am writing a script package. After the stage in the command window, he says "press any key to continue" and stops, and after which something is pressed, the script continues. How can I prevent this in a script?

+7
source share
3 answers

To output the command PAUSE:

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

The problem with PAUSE is that it is often necessary when running a batch file from Windows Explorer (or you cannot read the result), but this is annoying on the command line. I asked about it here, and I was offered a great trick:

Conditional PAUSE (not on the command line)

+9
source

a > nul , .,.

+2

you can call another script like this from the source, @echo | call otherScript.bat please find a detailed answer here Another thread with an example

+2
source

All Articles