Waits a specified number of seconds, displaying the number of remaining seconds as time passes, allowing the user to interrupt the waiting by pressing a key. Also known as delay or sleep.
Available in Windows Vista and later.
timeout /t 5
Waits for five seconds, allowing the user to cancel the waiting by pressing a key.
timeout /t 5 /nobreak
Waits for five seconds, ignoring user input other than Control + C.
timeout /t 5 /nobreak >nul
As above, but with no output.
$ timeout /? TIMEOUT [/T] timeout [/NOBREAK] Description: This utility accepts a timeout parameter to wait for the specified time period (in seconds) or until any key is pressed. It also accepts a parameter to ignore the key press. Parameter List: /T timeout Specifies the number of seconds to wait. Valid range is -1 to 99999 seconds. /NOBREAK Ignore key presses and wait specified time. /? Displays this help message. NOTE: A timeout value of -1 means to wait indefinitely for a key press. Examples: TIMEOUT /? TIMEOUT /T 10 TIMEOUT /T 300 /NOBREAK TIMEOUT /T -1
Found a mistake? Have a question or improvement idea? Let me know.
Table Of Contents