MS-DOS command to insert a pause
Solved
klash
-
Noddy -
Noddy -
Hello, I'm looking for a MS-DOS command (for Windows 2000 or XP) that allows me to insert a pause without a message and that lasts for a defined time (e.g., 2 seconds).
I know the PAUSE command, but it always displays "Press any key to continue," and it's the user who has to unblock the pause by pressing a key. I want the pause to stop by itself after a duration that I define...
Thank you.
I know the PAUSE command, but it always displays "Press any key to continue," and it's the user who has to unblock the pause by pressing a key. I want the pause to stop by itself after a duration that I define...
Thank you.
7 réponses
TIMEOUT /T timeout_period /NOBREAK
Description :
This utility accepts a timeout parameter that defines the
period of waiting time (in seconds) or until a key press
occurs. It also accepts a parameter to ignore
key pressing.
Parameter list :
/T maximum_timeout Specifies the number of seconds to wait.
The valid range is between
-1 and 99999 seconds.
/NOBREAK Ignore key presses and wait for the
specified time.
/? Displays this help screen.
Note: A timeout value of -1 means that a
key press is expected.
Examples:
TIMEOUT /?
TIMEOUT /T 10
TIMEOUT /T 300 /NOBREAK
TIMEOUT /T -1
Description :
This utility accepts a timeout parameter that defines the
period of waiting time (in seconds) or until a key press
occurs. It also accepts a parameter to ignore
key pressing.
Parameter list :
/T maximum_timeout Specifies the number of seconds to wait.
The valid range is between
-1 and 99999 seconds.
/NOBREAK Ignore key presses and wait for the
specified time.
/? Displays this help screen.
Note: A timeout value of -1 means that a
key press is expected.
Examples:
TIMEOUT /?
TIMEOUT /T 10
TIMEOUT /T 300 /NOBREAK
TIMEOUT /T -1
ping -n 10 127.0.0.1 >nul
the "10" represents the value in seconds
it will work every time on XP, even the worst XP
++