What is wrong with this call to schtasks on Win 7?

Posted by Jost on Super User See other posts from Super User or by Jost
Published on 2012-10-27T14:48:21Z Indexed on 2012/10/27 17:04 UTC
Read the original article Hit count: 220

Filed under:
|

I'm trying to run this in a Win 7 Professional admin console:

schtasks /create /tn "Task at 16:40 on 10/27/2012"
    /sc "once" /st "16:40" /sd "10/27/2012"
    /tr "c:\python27\python.exe c:\users\jost\Desktop\executeScript.py"

All referenced files exist. The error message I get is

ERROR: The filename, directory name, or volume label syntax is incorrect.

What is wrong? Running the command directly on the command line works fine.

© Super User or respective owner

Related posts about windows-7

Related posts about task-scheduler