HP Microsoft Windows Server 2003 Enterprise Edition  for PC
Problem for HP Microsoft Windows Server 2003 Enterprise Edition...

Windows 2003 Server Task Scheduler Exit Code (1)




By DJGray on Mar 04, 2009

" "
I have a cmd file that is executed every morning at 2:59:59 in Windows 2003 Server Task Scheduler. It runs, taking about 20 minutes to complete its tasks. If I run it manually from the command line, it runs without error. The automated run in Task Scheduler, however, finishes with an Exit Code of (1).

The task list is fairly simple: I delete all files in about 12 folders on three network drives, and copy about 500 files from a production system into those same folders. The idea is to get the production system backed up to three network locations, so we always have yesterday's data available.

I've entered my own Active Directory credentials in the scheduler to ''backup as'' myself (admin), and following deletion, am using the UNC convention to copy out the files, following this format:

COPY CPU982ADMINADMINNEWACCTGPAYROLL*.ASC BHAM-ENG-DATASHAREGLOBALJJANSKYRBaseSandboxPAYROLL /V /Y

Here is the result with the error code:
''Backup RBase.job'' (BackupRBase.cmd)
Started 3/4/2009 3:00:00 AM
''Backup RBase.job'' (BackupRBase.cmd)
Finished 3/4/2009 3:20:23 AM
Result: The task completed with an exit code of (1).

You can see, it took 20 minutes and 23 seconds to run, so it IS doing something, but the error code concerns me. I'm finding little help in a google search.
Comments:

Mar 05, 2009

- frcs,

No joy. I walked through the file line by line. These are just simple "DOS" copy commands - copy path\filename newpath\filename /v /y

I found no anomolies. It all looks very uniform since there are scores of identical lines row after row, with the only difference being the filename extensions.

I also tried changing the UNC path to the mapped drive name. Last night's run still resulted in an exit code of (1).

Any thoughts on where to take this?


Mar 06, 2009

- Hmmmmmm, that's a heck of a thought. Let me change it to an 8.3 filename and see if that fixes the issue. I'll letcha know.


Mar 10, 2009

- Still no joy. So, today, I meticulously walked through lines of this file. I did find one whack "/' that was supposed to be an escape character, but was butted up against the end of the path statement, so it may have been the cause of the issue. The process will run again at 3AM tomorrow. I'll post the results here.



Best Solution

posted on Mar 04, 2009
Helpful)

frcs68

Rank: Wiz  HP Computers & Networking  Expert
Rating: 82%, 1027 votes
the exit code of 1 or 0x1: Incorrect function called or unknown function called.
check your backupRBase.cmd file. one of the URL or function need to be modify.
Comments:

Mar 05, 2009

- the error code shouldn't create any problem, since you already running the file.
the only suggestion I have is to shorten the file name. I see the file name is rather long that may be only thing that is causing the error. The original DOS files name is 8.3 (8 character with 3 ext.). Windows now accepts 32bits, but since you are running DOS file command. I suggest you cut the file name shorter.

Mar 06, 2009

- it doesn't have to be 8.3, it can be any thing. Just shorter than what you have now.
Was this helpful?
Yes
No

Popular Solutions for HP Microsoft Windows Server


Questions and Unsolved Problems for HP Microsoft Windows Server


Do you recommend HP Microsoft Windows Server 2003 Enterprise Edition (T2373A) for PC?
Answer

Answer
When I want to transfer my photos from my PC to the picture frame using the mini USB cable... (More)

Answer
e normal sami apara ''start windows normaly''si abia dupa citeva secunde sami incarce windowsul?

Answer
what will i do if my PC won't start up normally. It just asking to boot

Answer
when i play music on winamp there is no sound coming when i staaart system not coming any sound pci... (More)


Didn't find what you were looking for?

Describe your Operating Systems problem:




Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Top Operating System Experts



Top Computer & Laptop Repairmen
in Burnsville, MN
(877) 934-6198
Send your laptop to us and we will diagnose the...
A+ Rated Oceanside Computer Sales & Service, LLC

(513) 874-3306
We fix and repair laptop motherboard no video, no...
LaptopOnCall Inc.


       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select


close

Add to My Products

Add the things you own to your My Products collection and get product information, solutions to problems, manuals & guides, tips and how-to's, reviews & ratings and local repair service - all in one easy place.


Step 1: Select a category & subcategory

Appliances Cameras Cars Computers Electronics Home Audio TV & Videos Tools
Appliances Cameras Cars Computers Electronics Home Audio TV & Video Tools
 
Step 2: Select a product and click on add
I can't find my product

select

Cancel
close
Success!

Add another product
Close
close
Save This Product

Enter your email address

We will not share your email. Privacy Policy

I agree to the FixYa Terms of Use

    
Send to friends
Send to: (e.g. Julie@email.com)
(Separate email adresses with commas)
Your name:
Your email address:
Message: