SCHTASKS 执行计划任务

不正确:

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 ...

posted @ 2023-08-27 16:09  CrossPython  阅读(21)  评论(0编辑  收藏  举报