Task Scheduler Exit Codes

G

Guest

Does anyone have a list of what they mean? We are having problems with
scheduled tasks and am trying to troubleshoot.
 
P

Pegasus \(MVP\)

SMFaison said:
Does anyone have a list of what they mean? We are having problems with
scheduled tasks and am trying to troubleshoot.

These codes are set by the application you're running,
hence you need to look at your own application. Embed
it in a batch file like so, then examine the log files:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\Tools\YourTask.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of c:\Tools\YourTask.exe=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log
 
D

Dave Patrick

This may help. Also Scheduled Tasks|Advanced|View Log may provide some
details.

Result Codes in Scheduled Tasks Indicate an Error Occurred in the Task
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q267031

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Does anyone have a list of what they mean? We are having problems with
| scheduled tasks and am trying to troubleshoot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top