NT Syntax

SLEEP.exe (Resource Kit)

Add a fixed delay to a batch file

syntax
      SLEEP time
key
  time : the number of seconds to pause

For example:
To pause for an hour before running the next command in a batch file:

SLEEP 3600

An alternative if you have TCP/IP installed, is to use the PING command with the loopback address of 127.0.0.1:

e.g. for a delay of 60 seconds:
PING -n 61 127.0.0.1>nul

"I think men talk to women so they can sleep with them and women sleep with men so they can talk to them" Jay McInerney

Related Commands:

TIMEOUT - Delay that allows the user to continue
WAIT - the same as sleep but with noises

Equivalent Linux BASH commands:

crontab - Schedule a command to run at a later time



Simon Sheppard
SS64.com