Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ConlinSupport
2008-12-15T23:32:33Z
New User

The batch file I am trying to run with VisualCron has been successfully run for 6+ months using windows task scheduler. The win 2000 server is due to be replaced next month and beginning two weeks ago, periodically would forget the password of the administrator. We would re-enter the password and it would run fine for a day or two, sometimes less. Out of frustration I discovered VC and set it up this weekend to run my simple batch file.

The problem is that when the task completes I receive both a success and a fail email and in VC the error on the execute task is "The handle is Invalid". Reviewing the VC log file the exit code is 6 (the handle is invalid).

I can't seem to find anything in the settings of the job or the execute task that make any difference other that the task won't run at all with other settings. The windows event viewer indicates that the actual batch task is successful as it does when I run the batch file by double clicking on it, but I still receive the success and fail emails and the "invalid handle" error.

I'm new... I'm stumped... and I'm frustrated. Thanks for any assistance you may provide.
Sponsor
Forum information
Support
2008-12-16T09:22:04Z
Hi,

about the email. The Complete Notification does not indiciate success - just that the Job is completed. So, if you have both checked at completion and failure you will receive 2 messages.

First, about your Execute Task - are you using Credentials?

Also, even though it may run successfully you may still have something in the code that creates this error. This kind of error you don't see when double clicking as it does not capture the error. The ordinary Task Scheduler captures this but it may not be easy to see while VisualCron shows you that quite clear in the face. The error depends a lot of what the Task really does. As we do not have access or know the exact details of the batch file we always recommend customers to break the script down: Create a new script where you copy the first lines. Run it. If success, add some more lines so you eventually see which line produces the error.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top