JSI Tip 4630. An alternative to the Sleep command.

If you do not have the Resource Kit, you can use the following alternative to the Sleep command:

@ping -n Times 127.0.0.1>nul

where Times should be approximately the number of seconds you wish to delay plus 1.

The valid range of Times is 1 to 4294967295.

This process consumes very few resources.

To Sleep for 15 minutes (900 seconds):

@ping -n 901 127.0.0.1>nul

NOTE: See More about an alternative to the Sleep command.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish