2012/12/25

Windows 7命令行倒计时工具-TIMEOUT

Windows7集成了命令行倒计时工具TIMEOUT, 对批处理很有用.

例如: 3秒后查看当前目录内容

TIMEOUT /T 3 && DIR

其详细参数如下:

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

Win7之前版本PauseWithTimeout, 相关信息请访问: http://www.cryer.co.uk/downloads/pausewithtimeout/ 

没有评论: