Search notes:

timeout.exe

timeout.exe can be used in a cmd.exe batch file or a PowerShell script to pause execution («sleep») for a specified amount of seconds.

cmd.exe

timeout /t 5 > nul

Powershell

timeout /t 5 | out-null

/nobreak

By default, timeout.exe stops waiting when a key is pressed. Using /nobreak causes timeout.exe to disregard key strokes.
ctrl-c however always cancels the waiting immediately.

See also

waitfor.exe
The /t option is also used in choice.exe for time out.

Index