Can somebody help me out with an easy *.bat file?

Argo

Lifer
Apr 8, 2000
10,045
0
0
Need a bat file that would:

1) Call certain command
2) Sleep for 1 second
3) Go back to step 1.

I can probably figure out steps 1 and 3, but how do I sleep in a batch script?
 

UCJefe

Senior member
Jan 27, 2000
302
0
0
Or there's always the poor man's sleep if you don't want to deal with downloading a resource kit:

ping 1.1.1.1 -n 1 -w 10000 >NUL

will "sleep" for 10 seconds. Change the -w argument as needed.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: UCJefe
Or there's always the poor man's sleep if you don't want to deal with downloading a resource kit:

ping 1.1.1.1 -n 1 -w 10000 >NUL

will "sleep" for 10 seconds. Change the -w argument as needed.

Nice trick. :thumbsup:
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Originally posted by: UCJefe
Or there's always the poor man's sleep if you don't want to deal with downloading a resource kit:

ping 1.1.1.1 -n 1 -w 10000 >NUL

will "sleep" for 10 seconds. Change the -w argument as needed.

Funny thing, this is the same solution I ended up using, before I even saw your post :) Including the same IP address :)