Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.46 KB

File metadata and controls

58 lines (40 loc) · 1.46 KB
title description ms.topic ms.assetid ms.author author manager ms.date
timeout
Reference article for the timeout command, which pauses the command processor for the specified number of seconds.
reference
e26b4a84-0e30-46e1-aa10-0667b7d3cb4c
wscontent
robinharwood
mtillman
10/16/2017

timeout

Pauses the command processor for the specified number of seconds. This command is typically used in batch files.

Syntax

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

  • A user keystroke resumes the command processor execution immediately, even if the timeout period has not expired.

  • When used in conjunction with the resource kit's Sleep tool, timeout is similar to the pause command.

Examples

To pause the command processor for ten seconds, type:

timeout /t 10

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

timeout /t 100 /nobreak

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

timeout /t -1

Related links