Tuesday, 18 February 2014

How to stop batch files from closing automatically?

Usually a batch file auto-closes after processing the commands. But if you want to stop this behaviour then add a "pause" command at the end of the file.

pause DOS command

This prints "Press any key to continue . . . " message and waits for a key stroke.

Click on below links for more info

Batch files

Change output of pause command

List of DOS commands

No comments:

Post a Comment