Batch Scripts and Sleep
Every now and then I want to make my batch scripts pause or wait for x amount of time. Most solutions seem to utilise ping to make it wait as natively Windows doesn’t include a sleep or wait feature and pause only accepts a user input.
Here comes the timeout command!
TIMEOUT /NOBREAK /T 10 >NUL
will make your scripts wait for 10 seconds and display no output, without the >NUL it will display a countdown.