+ Reply to Thread
Results 1 to 2 of 2

Macro for opening an external Batch file and closing the same at regular intervals.

  1. #1
    Registered User
    Join Date
    04-16-2008
    Posts
    19

    Macro for opening an external Batch file and closing the same at regular intervals.

    Is there any way in which an external batch file say abc.bat be executed every 60 minutes ? And the previous running batch file closed at the 59th minute ?

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You can use Application.Ontime to set a macro to run at a predefined time or after a set delay period.


    Please Login or Register  to view this content.

    Not sure about closing the bat file at the 59 minute mark.

    Normally I would expect the batch file to have a command to exit when it was finished doing what it was supposed to do.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1