2012-10-06 89 views
2

我的命令行是:指定任務調度秒

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

但任務在00:00初始化,爲什麼忽略了30秒?

我的操作系統是Windows 7

+0

如果您使用例如00:05:00?它仍然被忽略? –

回答

1

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參數的格式不秒。