Solved

Windows scheduled Task result

Posted on 2010-09-08
4
429 Views
Last Modified: 2012-05-10
the log of the windows scheduled task gives the following:

Result: The task completed with an exit code of (0).

what are the other codes? is there a reference for this?

thanks
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 333 total points
ID: 33627748
That's just the errorlevel that whatever program you've scheduled to run returned when it finished.
Since the errorlevel is program dependent, you'll have to check with the manufacturer of the program if the program returns an errorlevel (other than 0), and if so, what it means.
If you schedule the batch script below, for example, the task scheduler will display an exit code of 0x4D2 (=1234 in decimal).
@echo off
exit 1234

Open in new window

0
 
LVL 21

Assisted Solution

by:Jason Yousef, MS
Jason Yousef, MS earned 167 total points
ID: 33627901
YES, there's a reference for all the exit codes , HERE

0
 
LVL 84

Assisted Solution

by:oBdA
oBdA earned 333 total points
ID: 33627990
Nope, that is NOT a reference for "all the exit codes"; these are, as the title says, "Windows System Error Codes" (the same ones that can be obtained localized using "net helpmsg <error code>"). A default OS application like "net.exe" will usually exit with one of these, but the batch script above will certainly not have suffered from "1234 No service is operating at the destination network endpoint on the remote system".
A programmer can decide which errorlevel his application will return under which conditions. robocopy.exe, for example, will return with a bitmask value indicating what happened during the copy and whether there were serious failures.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33629538
ok. Thanks for the details and nature of the errors.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Learn about cloud computing and its benefits for small business owners.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

756 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