Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的命令行是:
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 参数的格式没有秒数。