SCHTASKS 执行计划任务

发布时间 2023-08-27 16:12:21作者: CrossPython

不正确:

schtasks /create /tn "MySQL Automatic Backup"
/tr "d:\path with spaces to my script\my script.bat" /sc daily ...

 

 

正确:

schtasks /create /tn "MySQL Automatic Backup"
/tr "\"d:\path with spaces to my script\my script.bat\"" /sc daily ...