Task Scheduler - make up for missed tasks?



Mario Reinhöfer
07-10-2005, 12:57 AM
Win2k/XP: howto start/reschedule a task at system startup when the
normal start time of the task was during power-off?

Say: I planned a backup task every friday at 09:00 am, the customer
went at office at 01:00 pm and I'd like the task scheduler to start the
backup task when customer logs on.

Thanks in advance
Mario

Pegasus \(MVP\)
07-10-2005, 12:57 AM
"Mario Reinhöfer" <mario.reinhoefer (at) t-online (dot) de> wrote in message
news:ur7dKZEaFHA.3280@TK2MSFTNGP09.phx.gbl...
> Win2k/XP: howto start/reschedule a task at system startup when the
> normal start time of the task was during power-off?
>
> Say: I planned a backup task every friday at 09:00 am, the customer
> went at office at 01:00 pm and I'd like the task scheduler to start the
> backup task when customer logs on.
>
> Thanks in advance
> Mario
>
>

You will have to write your own code to manage this, e.g. something
like this:
- When the backup job commences then it creates a semaphore file.
Place a time stamp inside in the form of dd/mm/yyyy hh:mm:ss.
- When the machine reboots then it calculates the number of seconds
that have elapsed since the time stamp in the semaphore file. If the
number is greater than 7x24x3600 then the job failed to run and
must be launched now. Make sure to place a time stamp of 09:00
from the previous Friday inside the semaphore file.


Task Scheduler - make up for missed tasks?