2012 Task Scheduler Batch Fails

D

Drew9876

Hello,

I hope someone can help me out with this. I've tried multiple ways of trying to run a batch from task scheduler but no matter what I do it fails. Now, this has worked perfectly fine in Windows 2008 R2, and prior, but it's just Windows Server 2012 R2 that's now giving me a problem. If I run this batch from a command line, no problem but from task scheduler it gives me error "2147942667", which is "The directory name is invalid".

Task runs as Administrator and the actions are Program/Script: build.bat Start in: M:\Work\Source\ I've also set the Program/Script to the whole path M:\Work\Source\build.bat and the Start in to M:\Work\Source\ but it's the same error.

There are NO quotes, which I know was a problem for many in Windows 2008. This "M" drive is a mapped network drive to an NFS share and all permissions are correct. Like I previously stated, other Windows Servers (2003 and 2008) have no problems executing this batch, it's just Windows 2012 (Std) R2.

Any help is GREATLY appreciated, otherwise I have an expensive piece of metal here doing nothing. ;)

Thanks!
Drew

Continue reading...
 
Back
Top Bottom