Run a task every hour in vista
Posted: Fri May 16, 2008 9:37 am
Hello,
I'd like to schedule a task in Vista but I have some problems.
This task must be executed every hour between 0 AM and 12PM.
For XP I use :
But this doesn't work in Vista
How can I do this without change property TaskScheduler1Only to True ?
Thanks,
I'd like to schedule a task in Vista but I have some problems.
This task must be executed every hour between 0 AM and 12PM.
For XP I use :
Code: Select all
Task.Triggers[0].StartDate := Date();
Task.Triggers[0].StartTime := 0;
Task.Triggers[0].Duration := 1440; // 24 hours
Task.Triggers[0].Interval := 60; // every hour
How can I do this without change property TaskScheduler1Only to True ?
Thanks,