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

Shrewsoft VPN client - can't open Access Manager

Hyper-V could not replicate changes for virtual machine as replication is suspended on the Replica server