Question Locked

Scheduled Tasks not running batch file

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have setup a batch file to run robocopy. File commands were working fine when I was using XP. Since I moved to Vista I've been unable to the run the task successfully.

The task history shows the task completed successfully. It completes in under a second, even though it should take 30 minutes, and with a return code of 1. I've tried using a local and network admin account to run the task.

I can run the bat file manually, just not on a schedule.

4 replies

by baxenden

I've seen this error when i scheduled task to move files from one server to another via a mapped drive. I changed the destination path to a UNC path and it worked.

Might not be the same issue but.....

by gssup

Thanks for the reply.

I check my script and I'm using UNC's already. But I did try using the network administrator's account to run the task as, even though my account has admin. privileges, it seems to allow the task to run.

by gssup

I've been monitoring the scheduled task and since I changed the user account to the system admin it has been running fine.

This discussion is closed to new replies.