Scheduling macros to run

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
ncentech
Newbie
Posts: 7
Joined: Tue Oct 05, 2004 7:22 pm

Scheduling macros to run

Post by ncentech » Tue Oct 19, 2004 4:41 pm

The macro that I have needs to move files from one directory to another then it runs a program that imports files into it. The process takes different time depending on how many files were present at the time. If I schedule the macro to run and to repeat every 5 minutes for some reason if it misses the repeat time it doesn't run anymore. I would like for it to run immediately after it finishes the first run even if it missed the next scheduled time. I thought by clicking on the setting Run immediately if scheduled was missed. Any help will be greatly appreciated.

msteigman
Newbie
Posts: 1
Joined: Sun Jan 23, 2005 1:19 pm
Location: Israel

Post by msteigman » Sun Jan 23, 2005 1:39 pm

If it's still relevant -
don't schedule your process to run every x minutes. Instead make it run continuously with a "WAIT" command between cycles. If you want the process to end at a specific time, run the macro with a parameter that contains the time at which you want the process to exit the loop and end. To do this, the exit test should test between the time in the parameter and several minutes later as it will never hit the test at the exact time you specified.
good luck.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts