There ought to be a sleep command of some sort, but then again, windows scripting isn't my thing.
This machine has sleep on it, but I think it's a cygwin thing. If you don't want to install anything additional and this is really just a temporary quick-fix type of situation, you can always loop the batch file and do something pointless to keep it busy for a few seconds.
This is all kinds of hackish and pretty stupid, but it slows this machine down for about 5 seconds:
Have fun and good luck.Code:@ECHO OFF for %%i in (1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f) do for %%j in (1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f) do echo . > blah
Oh, and another avenue is to use windows scripting host. I'm positive it's powerful enough to stop and start services and has to have some sort of sleep function.
EDIT: The indented pieces should be on the same line, but it caused vB to wrap nasty-like.




Reply With Quote