c++ - Task Scheduler: run task each hour from the current moment -
here problem: need create scheduled task executed each hour right moment installed. , must started each time user log in.
so far good. using examples msdn i've created task based on ilogontrigger, i've set repetition 1 hour , thats ok. after relogin or reboot task starts - need. don't want user reboot or relogin right now.
so question is: how make countdown current moment? understand can force run registered task - thats want avoid, want start hour later, , again, , again, etc...
one solution can imagine right create logon task without repetition , start delay. , each time executes run again delay. bad solution me. may i'm missing something?
oh. , must compatible first version of task scheduler (i.e. task_compatibility_v1 setting set). can live without :)
thanks advices if any.
ok, i've managed how want myself.
for task scheduler 2.0 can done assigning trigger task: iregistrationtask. if task_compatibility_v1 setting set trigger wouldn't assigned.
for windows xp i've created idailytrigger start boundary set 00:05. that's not need, works pretty well.
Comments
Post a Comment