Link to home
Start Free TrialLog in
Avatar of grantballantyne
grantballantyneFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Task Scheduler 0x2 error

Dear Experts

I have a batch file to FTP a file to a remote server - this is run in Task Manager, however it always returns a 0x2 error.

If I manually run the batch file it works perfectly.

Can anyone offer any suggestions?

Thanks
Avatar of Rich Weissler
Rich Weissler

Check the permissions / user context under which the file is running in Task Manager.  Assuming it isn't under the same permissions you are connected to the desktop, try opening up a cmd session as the other user (Control-Shift-rightclick -- 'run as different user') and see if the batch file works as expected as the other user.  Could be permissions or a directory that doesn't exist in the other user context.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial