PDA

View Full Version : Pause between two applications


rcethindra
Dec 1, 2004, 01:11 PM
Hello Friends,
I have scheduled two applications to kick of in the night. I have written a batch file to execute these applications where the second application commences only after the first one finishes. How much time the first application takes to finish is not fixed.

I want there to be a time delay of 4 to 5 minutes between the finish of the first application and commencement of the second application.

Can anybody suggest a command which can pause for five minutes before the next application starts.

Thanks

urmod4u
Dec 1, 2004, 01:41 PM
There is no readily available batch command for this. However, there are some techniques that will introduce delays.
Try the ping command to a non-existent IP address (e.g. 1.1.1.1), while specifying the time-out delay (in milliseconds):
PING 1.1.1.1 -n 1 -w 60000 >NUL
Where
"-n 1" is the request for 1 echo
"-w 60000" is the request to wait for 60 seconds before the time out
">NUL" is to reroute the result to nowhere