0x4 error with Scheduled Task

duficy
duficy used Ask the Experts™
on
I keep getting a 0x4 error when running a scheduled task on my W2K box The task will run if I manually run the batch file. The task copies files from a second computer to the local computer, the share is working. I have a second set of computers with the same batch file that WORKS. I have checked the permission on both sets and they are the same. The batch file and the scheduled task is setup under a user with administrative rights. I have restarted the service but still get a 0x4 error when running.

Any thoughts or tips on troubleshooting would be appreciated
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Open scheduled tasks >>click advanced >> view log

That should provide more details. Its possible you need to be an Administrator to run it. That can be changed as well.

You could also use the AT to schedule tasks. Here is an explanation
http://support.microsoft.com/default.aspx?scid=kb;en-us;313565

Author

Commented:
Thanks yeah I tried that get the same respose. "task exited with code of 4" Is AT more robust ? Or give better error messages ?
Commented:
Is that a windows error code that the task scheduler returns (0x4 would be "The system cannot open the file") or is this the result code your batch returns?

AT is the predecessor of the scheduled tasks and was mainly used in NT4 times. You shouldn't use it anymore with Windows 2000 or higher.
All I can think of are the permissions. Are the logins between the two the same ?  Are there any local policies on the non-working workstations ?



>> AT is the predecessor of the scheduled tasks and was mainly used in NT4 times. You shouldn't use it anymore with Windows 2000 or higher.

You may want to tell Mister Softy that. The link is specific for Win2K

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial