在任务计划程序中指定秒数

时间:2012-10-06 19:43:56

标签: windows

我的命令行是:

schtasks /Create /SC ONCE /ST 00:00:30 /TN MyApp /TR notepad.exe

但是任务在00:00初始化,为什么忽略30秒?

我的操作系统是Windows 7。

1 个答案:

答案 0 :(得分:2)

来自schtasks /create ?的输出:

  /ST   starttime    Specifies the start time to run the task. The time
                  format is HH:mm (24 hour time) for example, 14:30 for
                  2:30 PM. Defaults to current time if /ST is not
                  specified.  This option is required with /SC ONCE.

正如您所看到的,/ ST参数的格式没有秒数。