Solved

Help with Scheduled Task Result Codes

Posted on 2004-04-28
3
17,888 Views
Last Modified: 2011-08-18

I'm trying to troubleshoot some scheduled tasks that have been failing here as of late.  The Scheduled Tasks tool lists the run times as well as the last result code in a column called Last Result and I'm trying to decipher them.

I found the following three descriptions at :
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q308558

0x0: The operation completed successfully.
0x1: An incorrect function was called or an unknown function was called.
0xa: The environment is incorrect.

But I'm seeing additional result codes such as 0x80 and 0xff and 0x2

Anyone have a list of result codes or know where one is?  ... I'm all Googled out.

Thanks,
-Brian
0
Comment
Question by:brianadkins
  • 2
3 Comments
 
LVL 3

Expert Comment

by:tim_mcgue
ID: 10941889
Hi brianadkins,

The result codes are not a result of the task scheduler but the application itself.  Find a copy of winerror.h (you might have it on your local system).  It will have what you are looking for.

Tim McGue
0
 
LVL 5

Author Comment

by:brianadkins
ID: 10941966

OK... but my scheduled task involves a batch file which fires of multiple applications over a period of hours.

Would the result code be for the batch file, or for whichever application actually bombed?

Thanks for any tips...

-Brian
0
 
LVL 3

Accepted Solution

by:
tim_mcgue earned 500 total points
ID: 10942015
brianadkins,

Yes, the error result code would be from your failing application.  If you want to go old school you could run each command of your batch from a command line and echo out %ERRORLEVEL% to see the result code reported there too.

Tim
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now