Windows task scheduler not running batch file on network drive

2

I have a batch file that I'd like to run with the Task Scheduler. Running the batch file manually works fine. If the batch file resides on the C:\ drive, task scheduler runs it fine, but if the batch file is on a network drive, it doesn't run. The task scheduler reports that the job finished successfully, but the batch file is not getting run.

I've tried using both the drive mappings and UNC paths. I've also tried changing the scheduler action to cmd /C Path/To/BatchFile just to see if that would help.

Brendan Abel

Posted 2011-06-21T21:53:54.600

Reputation: 281

Is it possibly just a simple problem with the scheduler? Sounds like you're well past that, but hey, simple answers can be admissible. – James T Snell – 2011-06-21T21:57:20.463

Are you running the scheduled task as your regular user or as a different user? If the latter, does that user have access to the share where the BAT file resides? Are you typically logged out when the task is supposed to run? Also, is there any chance that you could post some or all of the contents of the batch file in case the problem lies there? – boot13 – 2011-06-21T22:13:51.883

Have you looked in the event log to see if a reason why is given? – PhonicUK – 2012-09-06T11:12:10.620

Answers

0

Create a batch file on your local C:\ drive that runs the batch file on the network drive.

Tyler Faile

Posted 2011-06-21T21:53:54.600

Reputation: 2 706