Pause for X seconds in batch file?
Posted by vital on December 23, 2008
1 comment
Everyone who ever tried to automate routine tasks in windows knows that there is no sleep() program or its analogue. At least in default windows installation.
But there is quite an unexpected workaround:
ping -n 2 127.0.0.1 > nul
will stop batch execution for 2 seconds. (Replace 2 with your number for longer pause.)
Very simple and neat. Or is it?