• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Insert pause in batch file

DiscoStu

Dirty kapitalist spekulant
Thanks received
101
I'm writing a DOS batch file, and want it to pause for 5 seconds between two particular instructions, but I'm buggered if I can find a way to do it.

Any ideas?
 
As DOS is shi*e there's no native way of doing it.

You'll need sleep.exe from the 2003 res kit.
 
Good grief, thought I was CUK's old fart. (After zeitghost of course) Agree with last. Also can you use GOTO, IF and TIME somehow?
 
sleep.exe has been around a lot longer than the 2k3 resource kit - it was part of the NT3.5 reskit from links I can see - and I can remember it from around then as well!
Should be easy enough to get hold of.... out on a variety of websites.
 

Advertisers

Back
Top