Windows – Task Scheduler returns Directory Name Invalid for valid path

windows 7windows task scheduler

I'm trying to use Task Scheduler to run a Ruby script every night. When I try to run the script, I get error 0x8007010B which seems to be Directory Name Invalid. The directory I'm starting in is a mapped network drive. Performing the equivalent action from the command line works fine. Here's the action I'm trying to perform along with a piece of the command line window showing that both directory names are valid.

Action configuration

Why is Task Scheduler claiming the directory name is invalid?

Best Answer

I had the same problem but more generic: The Start in (optional) field doesn't support quotes (e.g. "C:\Program Files"). I removed them and it worked!

Related Question