Scheduled Task issues 0x2 error
I'm trying to get a scheduled task to run a perl script that performs our backup.
When i run the script manually (double click) it works fine, and backs everything up properly.
When i schedule it however, it doesn't work and exits with error code 0x2. I've looked on google and this seems to indicate "file not found". I've tried changing permissions, folders and user accounts but it still does this.
My current theory is that it is failing on these use lines at the top:
but why it works fine when run outside of the scheduled task i don't know!
Can anyone shed any light on why this might be failing?!