Page 1 of 1

Scheduler A Quick One

Posted: Sat Jan 13, 2007 3:00 am
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.

Scheduler A Quick One

Posted: Mon Jan 15, 2007 1:16 am
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