What would the command be to have Windows pause for x seconds during startup and display a Wait message during…?
Chuck Billow
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Windows » Windows 11 » Windows 11 version 23H2 » Wait command?
Chuck: in the BATch file after the message, you want to insert a command
ping -n 6 127.0.0.1 > nul
This will pause for the [number of seconds – 1] that you specify after the “-n” parameter. “-n 6” means “wait for 5 seconds”. Change the number to suit!
BATcher
Plethora means a lot to me.
This will pause for the [number of seconds – 1] that you specify after the “-n” parameter. “-n 6” means “wait for 5 seconds”. Change the number to suit!
Tha ping command does not have a “pause # secs” function!
Ping /? shows the following for the n parameter:
-n count Number of echo requests to send.
And how long it takes to complete -n 6 packets will depend on how fast a particular user’s CPU & NIC card are running and will be different for each PC (i.e. on my particular PC with a 4.9 GHz CPU and a 2.5 GHz NIC card, it only takes 3 secs to send 6 packets to 127.0.0.1).
The correct command to pause a batch file for a set period is the timeout command that’s been available in all versions of Windows since Vista.
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
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications