我的命令行是:
schtasks /Create /SC ONCE /ST 00:00:30 /TN MyApp /TR notepad.exe
但任务在00:00初始化,为什么忽略了30秒?
我的操作系统是Windows 7。
从schtasks /create ?
的输出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参数格式中没有秒。