wait/sleep command

  • Thread starter Thread starter yepiknowiam
  • Start date Start date
Y

yepiknowiam

Is there a wait/sleep equilivant command for the command prompt? I know
there is wscript.sleep for vbs files.

I'm running a batch file and want to it pause a few seconds between commands.

Haven't found much from microsoft. There is the waitfor command but it
wasn't recognized.

Thanks.
 
Use

ping -n XXX 127.0.0.1

replace XXX with the desired number of seconds +1
 
Poor man's sleep timer:
ping localhost -n (number of seconds to sleep)
Louis
 
Oops, that sould have been
ping -n (number of seconds to sleep) localhost
Louis
 
3c273 said:
Oops, that sould have been
ping -n (number of seconds to sleep) localhost
Louis

The order of the parameters is irrelevant.
 
Somehow I thought I left out localhost on the first one. Still asleep I
guess.

Louis
 
ping -n xxx 127.0.0.1

(replace xxx with the seconds plus one so for one minute use 61)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top