ac_davis2002
asked on
Failing Schedule Task
Hi
Can anyone tell me how to find out why a schedule task keeps failing? is an error message generated?
Thanks
Can anyone tell me how to find out why a schedule task keeps failing? is an error message generated?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok the last result is 0x0 ?
but the status is running, should i create a new post when it next fails with the last result code?
but the status is running, should i create a new post when it next fails with the last result code?
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for ac_davis2002's comment #a38353526
Assisted answer: 125 points for Sjizzel's comment #a38353372
Assisted answer: 125 points for gaurav05's comment #a38353377
Assisted answer: 125 points for Xaelian's comment #a38353445
Assisted answer: 125 points for Xaelian's comment #a38353475
for the following reason:
thank you all!
Accepted answer: 0 points for ac_davis2002's comment #a38353526
Assisted answer: 125 points for Sjizzel's comment #a38353372
Assisted answer: 125 points for gaurav05's comment #a38353377
Assisted answer: 125 points for Xaelian's comment #a38353445
Assisted answer: 125 points for Xaelian's comment #a38353475
for the following reason:
thank you all!
ASKER
Excellent
I ran into this issue with a batch file running as a scheduled task. It would run perfectly fine if I executed it manually but when I tried to run it as a schedule task it would fail instantly. The batch file I was running was a simple Robocopy command. I had created mapped drive letters to make it simple to write. Come to find out when executing the command manually it recognized the mapped drive and performed the function flawlessly. However when executing the command from a scheduled task the task could not recognize the drive mapping and therefore fail. I used the full UNC name in the command and the task ran correctly. (ie robocopy \\server_name\share_name\p ath d:\local_path)
I assume that when any executable file is run via a scheduled task it takes on a different personality or is not simply running the executable as you would from a command line. Bottom line DO NOT run executables that include mapped drive letters...stick with the UNC name and the task will behave properly
I assume that when any executable file is run via a scheduled task it takes on a different personality or is not simply running the executable as you would from a command line. Bottom line DO NOT run executables that include mapped drive letters...stick with the UNC name and the task will behave properly
ASKER
It runs as admin.
where will i find the exit code?