Can run an .exe successfully from command line, but not from Task Scheduler


I am able to run a .exe from the command line, but when I try and run it using the Task Scheduler, I get the error "The system cannot find the path specified. (0x80070003)"

I am running this on a server, so I have tried mapping the drive and also using the full path. Both of these methods work using the command line.

This is how I have the Program/script set to run:

D:\scripts\lilt\NewFile.exe \err00\root\LILT\ILL\ \pcc02\Inter\I040\ILL\Inbox\"

What do I need to do, to get this to run on the scheduler? Thanks!

asked on Stack Overflow Apr 12, 2016 by jodies

1 Answer


I figured it out. I had to use the "Add arguments (optional)" section to indicate the drives and not put it in the Action line. (As some history, I'm moving this task from a PC to a server, and the PC had it all in the one line, as well, when running from cmd on the server, I could execute it successfully on one line, but it behaves differently once you make it a task apparently.

So this went in "Action":

And this went in Add arguments (optional): \err00\root\LILT\ILL \pcc02\Inter\I040\ILL\Inbox

answered on Stack Overflow Apr 12, 2016 by jodies

User contributions licensed under CC BY-SA 3.0