Today I sifted through the first 4 pages of Google search results on ‘pause batch file’ only to find that none of the suggestions work on Windows 2008 server. Why are all of these pages suggesting sleep.exe and choice.com and ping -n when the obvious solution is the timeout command? More importantly why is it that the first instance mentioning this command is hidden half way down the third page of search results?
I never want to have to look for this stupid command up again so I’m posting it here where I’ll always be able to find it:
Syntax
timeout /t <TimeoutInSeconds> [/nobreak]
Parameter | Description |
---|---|
/t <Seconds> | Specifies the number of seconds to wait before the command processor continues processing. |
/nobreak | Specifies to ignore user key strokes. |
/? | Displays help at the command prompt. |
Hope it helps someone else.