Programmatically Creating a Scheduled Task in Windows - 0x8004130f Error

前端 未结 3 539
无人共我
无人共我 2021-02-02 14:36

I am having major problems getting a scheduled task to run. The task is created fine using the ITaskScheduler interface provided by Microsoft. The task is set to run only if a u

3条回答
  •  旧时难觅i
    2021-02-02 14:53

    you could use batch scripting.

    schtasks /create /tn UNO /tr YOURAPP.EXE /sc HOURLY /mo 2
    

    there you go.

    read: How to use Schtasks.exe to Schedule Tasks in Windows Server 2003

提交回复
热议问题