SCHTASKS creates the task but the task won't run

The Task is Created but Shows the Path Broken into Parts


When you create a task with spaces in the path, the schedule task is created with part of the path in the arguments section.

Using quotes as normal will not fix the problem.

THE FIX

Use the syntax shown below to embed the path within quotes.

schtasks /create /tn "the task" /tr "\"c:\foldername name with spaces\program.exe\" arguments" /sc once /sd 07/29/2003 /st 10:01

Comments

Popular posts from this blog

Server Manager Refresh completed with one or more warning

Event ID 122 Access to Drivers on Windows Update Blocked by Policy - Fix Here

root\cimv2\TerminalServices namespace is marked with the RequiresEncryption flag - Temporary Solution