Re: Error code 4 for Task Scheduler
From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 01/22/05
- Next message: danjr: "Re: Remote desktop on win2000 wkst pro."
- Previous message: Oli Restorick [MVP]: "Re: How to activate Windows 2000 using an Unattended.txt file"
- In reply to: ctdak: "Error code 4 for Task Scheduler"
- Next in thread: ctdak: "Re: Error code 4 for Task Scheduler"
- Reply: ctdak: "Re: Error code 4 for Task Scheduler"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 11:32:24 +1100
"ctdak" <ctdak@discussions.microsoft.com> wrote in message
news:37927815-9032-44FC-921B-3FB0675F46EE@microsoft.com...
> I am getting an error code 4 upon a scheduled task trying to run. The
task
> is running an MS-DOS batch file with an XCOPY command in it to transfer
some
> files. The batch file runs fine when run manually, so I think it has
> something to do with running after hours when not logged in. Does anyone
> know exactly what this error code indicates? I don't want to pay $200 for
> the MS Driver Dev Kit which supposedly explains these codes.
> Thanks.
>
Most task scheduler error codes are generated by the command
you're running, i.e. xcopy.exe in your case. Add some basic
diagnostics and you'll soon see what's going on:
xcopy /s /y /.... "c:\SomeFolder\..." "d:\Other Folder\..."
1>c:\test.log 2>c:\test.err
What do the two log files tell you when you run the job?
- Next message: danjr: "Re: Remote desktop on win2000 wkst pro."
- Previous message: Oli Restorick [MVP]: "Re: How to activate Windows 2000 using an Unattended.txt file"
- In reply to: ctdak: "Error code 4 for Task Scheduler"
- Next in thread: ctdak: "Re: Error code 4 for Task Scheduler"
- Reply: ctdak: "Re: Error code 4 for Task Scheduler"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|