Question Scheduled Tasks Question?

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I have two scheduled tasks. Task A is scheduled for everyday at 00:10 AM and Task B is scheduled for everyday at 00:45 AM. What I want to do is, if the first task successfully runs, let the Task B runs, otherwise if Task A gives error (somehow does not run), dont let the Task B run.

Is there a way to implement this? Bytheway, Tasks will run on XP machines.

Thanks in advance.

Best Regards.
 
If XP task scheduler allow a task to be triggered by an event log (which Vista and later does) you could use EventLog class to put log info there, granted app A is written by you.
If not perhaps the easier option is to have single task pointing to an app you write, which starts app A and checks its exit code or however you determine a successful run, and conditionally starts app B.
 
Back
Top