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

Hyper-V failed to enable replication on the Replica server for the Virtual Machine