Tuesday 20 March 2012

Scheduled Task run results

List of Task result codes and what they mean.
Why not just put the info in the task scheduler MS?

SCHED_S_TASK_READY
0x00041300
The task is ready to run at its next scheduled time.

SCHED_S_TASK_RUNNING
0x00041301
The task is currently running.

SCHED_S_TASK_DISABLED
0x00041302
The task will not run at the scheduled times because it has been disabled.

SCHED_S_TASK_HAS_NOT_RUN
0x00041303
The task has not yet run.

SCHED_S_TASK_NO_MORE_RUNS
0x00041304
There are no more runs scheduled for this task.

SCHED_S_TASK_NOT_SCHEDULED
0x00041305
One or more of the properties that are needed to run this task on a schedule have not been set.

SCHED_S_TASK_TERMINATED
0x00041306
The last run of the task was terminated by the user.


Complete List here :
Task Scheduler Error and Success Constants
http://msdn.microsoft.com/en-us/library/aa383604%28VS.85%29.aspx

No comments:

Post a Comment