Scheduled task result 0x1

R

Rico

I have a scheduled task(batch file)set up to run with the
administrator password. It continues to fail with a
result of 0x1. The batch file will run from a command
prompt with no problems. Any help would be appreciated.

Rico
 
D

Dave Patrick

Scheduled Tasks|Advanced|View Log may provide some details.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I have a scheduled task(batch file)set up to run with the
| administrator password. It continues to fail with a
| result of 0x1. The batch file will run from a command
| prompt with no problems. Any help would be appreciated.
|
| Rico
 
G

Guest

Already checked there and it gives no details except for
Finished 9/28/2004 9:21:42 AM
Result: The task completed with an exit code of
(1).
 
P

Pegasus \(MVP\)

Rico said:
I have a scheduled task(batch file)set up to run with the
administrator password. It continues to fail with a
result of 0x1. The batch file will run from a command
prompt with no problems. Any help would be appreciated.

Rico

The error code is returned by the process you're running
inside your batch file. Modify it like so:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\Tools\YourTask.exe 1>>c:\test.log 2>>c:\test.err
echo %date% %time% End of task >> c:\test.log

Now examine the two log files and all will become clear!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top