Timeout


Applies To: Windows Server 2008,Windows Server 2008 R2,Windows XP,Windows Server 2003,Windows Vista,Windows Server 2000,Windows Server 2003 R2,Windows 7

Pauses the command processor for the specified number of seconds.

For examples of how to use this command, see Examples.

Syntax


Copy Code

timeout/t <TimeoutInSeconds> [/nobreak]

Parameters

Parameter

Description

/t <TimeoutInSeconds>

Specifies the decimal number of seconds (between -1 and 99999) to wait before the command processor continues processing. The value -1 causes the computer to wait indefinitely for a keystroke.

/nobreak

Specifies to ignore user key strokes.

/?

Displays help at the command prompt.

Remarks

Examples

To pause the command processor for ten seconds, type:


Copy Code

timeout /t 10

To pause the command processor for 100 seconds and ignore any keystroke, type:


Copy Code

timeout /t 100 /nobreak

To pause the command processor indefinitely until a key is pressed, type:


Copy Code

timeout /t -1

Additional references

Command-Line Syntax Key