Home » Questions » Computers [ Ask a new question ]

Task scheduling Batch Files in Vista

Task scheduling Batch Files in Vista

Wondering if there is some trick to scheduling a batch file to run in Vista.

Asked by: Guest | Views: 225
Total answers/comments: 1
Guest [Entry]

"To work around this problem, enclose the path portion of the task (not including arguments or switches) between backslash (\) and quotation marks ("") character combinations, for example \"". Enclose the complete path of the task (including arguments or switches) between quotation marks as usual when you create a path or command that contains spaces.

schtasks /create /tn ""my task"" /tr ""\""c:\foldername name containing spaces\script.bat\"" arguments"" /sc once /sd 07/29/2003 /st 10:01

source: support.microsoft.com"