SLEEP.exe – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Delay execution for a few seconds/minutes (for use within a batch file.)
1 2 3 4 5 |
Syntax SLEEP time Key time The number of seconds to pause |
Example
Pause for 10 seconds before running the next command in a batch file:SLEEP 10
Alternative
A delay can also be produced by the PING command with a loopback address (127.0.0.1), in tests this consumes less processor time than Sleep.exe or Timeout.exe:
e.g. for a delay of 30 seconds:PING -n 31 127.0.0.1>nul
See Clay Calvert’s newsgroup posting for a full explanation of this technique.
I love it when people come together and share opinions, great blog, keep it up.
I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thx again
Very good written information. It will be valuable to anybody who utilizes it, including yours truly :). Keep up the good work – for sure i will check out more posts.