Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Pause between two applications (https://www.askmehelpdesk.com/showthread.php?t=6477)

  • Dec 1, 2004, 01:11 PM
    rcethindra
    Pause between two applications
    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
  • Dec 1, 2004, 01:41 PM
    urmod4u
    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

  • All times are GMT -7. The time now is 02:16 AM.