Hello,
I am running VisualCron 5.4.7 and am having a problem with a task in a job that always completes in error, though it achieves the intended result. I am hoping someone can help. Here is a description of the job and task:
The job has one task. The task in an execute type command task. I call a batch file (.bat) file. I've set the working directory correctly as c:\ and have also set the credential correctly as a domain user that has admin privileges on the server. The batch file does a sequence of tasks, it first copies files from a server using robocopy, it then establishes a vpn connection to an outside party and does a few transmissions, finally it copies the result files from the vpn transmission back to the source server using robocopy.
The task always shows as failed in visualcron. The message in the log file is "12/15/2009 7:06:37 PM Err Exception in Task: Non zero exit code
12/15/2009 7:06:37 PM Err Task "xxx" exited with code: 1(Incorrect function.)"
Though visualcron shows as failed, I get the intended result. What does this exit status mean? How can I get it to return a success status when it a success and error when it really is an error?
Any help would be much appreciated.