Scheduler A Quick One

Discuss RoboTask here
Post Reply
allst1
Posts: 2
Joined: Sat Nov 04, 2006 7:11 pm

Scheduler A Quick One

Post by allst1 »

I would like Robotask to run a task every 14 days is there a way of doing this? If you could kindly help me with that.The cyclic only has a certain maximum number of seconds :( ...I basically want to schedule task to copy and replace files from a folder every 14 days.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Scheduler A Quick One

Post by Oleg »

Try the following algorithm:
1. Use scheduler event with weekly period
2. Execute necessary code only on odd (or even) week. See below:

If {MyOddFlag} = 1 then
   Do necessary actions
   Set variable MyOddFlag to 0
else
   Set variable MyOddFlag to 1
end if

This task will be launched every 7 days but necessary code will be executed only each 14 days
Post Reply