MS-DOS command to insert a pause

Solved
klash -  
 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.

7 réponses

loytstf
 
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
48
ours mal léché
 
a trick that will work every time

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

++
1
Bybeu Posted messages 35 Status Membre 1
 
Coooool !!!
0
Celebre
 
here you go, Thank you
0
magdales
 
It still works just as well this ping. But why aren't there any native pause functions ... grumble!
0
Noddy
 
Great, thanks for this order. Until now, I was using the ping, which I personally found inappropriate.
0