【发布时间】:2011-04-20 04:34:21
【问题描述】:
我在 Windows-XP 上使用 schtasks 实用程序安排了一项任务,但该任务没有运行。这是我在SchedLgU.Txt 日志文件中看到的内容:
"MySQL Automatic Backup.job" (WampServer) 10/2/2010 6:36:43 PM ** ERROR **
Unable to start task.
The specific error is:
0x800700c1: (Unable to find an error message)
Try using the Task page Browse button to locate the application.
我发现此错误的原因是脚本路径中的空格。我用来设置任务的命令如下所示:
schtasks /create /tn "MySQL Automatic Backup"
/tr "d:\path with spaces to my script\my script.bat" /sc daily ...
如果我用下划线替换空格,例如,问题就消失了。
我该如何解决这个问题?
还有一个问题:Start In 列在 schtasks /query /v 的输出中是什么意思?
谢谢!
【问题讨论】:
标签: windows-xp scheduled-tasks windows-task-scheduler