A lot of command-line utilities use custom error codes, so NET HELPMSG won't always 
help, but NET HELPMSG <error_code> will usually point you in the right direction.

One thing you'll want to do is run the batch process in interactive mode and compare 
the results against those acquired from running under the LocalSystem context.  The 
problem may simply be access,
but the combination of errors sounds like the process is trying to write to a CD or 
trying to disconnect a LOCAL device.

______________
Edgar Torres

P.S. Whasup, Andrey?  I heard you had moved to S&P!?  I hope you like it there...


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 10, 2001 12:56 PM
To: NT System Admin Issues
Subject: Re: Win 2000 Task Scheduler - Error Code explanation


You might find an additional information on the errors of scheduled tasks in a file 
called SchedLgU.txt, located in %WinDir% (or get it by selecting Advanced\View log 
menu in Tasks folder)

But in general, the exit messages from Task Manager are the standard NT (or
Win2K) error messages. You can get their description by running net helpmsg 
YourErrorCode to get some description

Error 1 means Incorrect function
Error 2331  means The operation is invalid for this device

Make sure that your job is scheduled with a proper permissions.  TaskScheduler service 
runs under LocalSystem account, and if you need to copy a file from a remote place, 
you need to run it as some
other user.

Andrey Kalinin
Senior LAN Engineer
S&P





"Mohamed A. Karimullah" <[EMAIL PROTECTED]> on 09/10/2001 12:11:35 PM


Please respond to "NT System Admin Issues"
      <[EMAIL PROTECTED]>
                                                              
                                                              
                                                              
 To:      "NT System Admin Issues"                            
          <[EMAIL PROTECTED]>             
                                                              
 cc:      (bcc: Andrey Kalinin/FIS)                           
                                                              
                                                              
                                                              
 Subject: Win 2000 Task Scheduler - Error Code explanation    
                                                              





A batch program when run manually or scheduled to run in a minute or two (for testing) 
runs successfully. When scheduled for after hours with no activity for about 6 hours 
or so, the Task Scheduler
log file reports ..."The task completed with an exit code of (1)".

An exit code of (0) refers to a successful task. What does exit code (1) signify? As 
I'm at it what does exit code (2331) imply? Where among the plethora of literature did 
MS put an explanation of
these exit codes?

The Task Scheduler runs on a Win 2000 Adv server in an NT 4 Domain. The Batch job is a 
simple copy and unzipping operation.

Thanks.

Mohamed A Karimullah
Network Engineer
PATRINA CORPORATION
2 Wall Street, New York, NY 10005
T -(212) 233-1155
F -(212) 233-2244
[EMAIL PROTECTED]
www.patrina.com


http://www.sunbelt-software.com/ntsysadmin_list_charter.htm





http://www.sunbelt-software.com/ntsysadmin_list_charter.htm



http://www.sunbelt-software.com/ntsysadmin_list_charter.htm

Reply via email to