Solved

Help with Scheduled Task Result Codes

Posted on 2004-04-28
3
17,905 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
website 1 309
Locking down a taskpad 1 162
Trust between Windows Domains 2000/2003 and Windows 2012-R2 2 231
Building AD from Scratch 5 123
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…
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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