我創建了一個Windows任務,並計劃每1小時運行一次。更改窗口計劃任務的電源設置
每小時任務都會運行,但會收到警告Task Scheduler did not launch task "\Sample Task" because computer is running on batteries. User Action: If launching the task on batteries is required, change the respective flag in the task configuration.
,並且任務會過早退出。
我使用SCHTASKS.exe創建任務,因爲我需要創建從窗體中輸入用戶輸入的任務。
使用該命令我想刪除電源選項。 這可能嗎?
可以請你提供使用XML創建任務的例子 – 2012-01-31 07:44:26
非常感謝從XML HTTP創建任務得到解決?: //technet.microsoft.com/en-us/library/cc722156.aspx – 2012-01-31 07:54:40