How to create a scheduler task in Window Task Scheduler using Java?

后端 未结 3 1316
春和景丽
春和景丽 2021-01-19 06:09

I want to create a task under Window Task Scheduler using my java code. OS I am using is win7 64bit. After creating the task I have to edit the scheduled time weekly or biwe

3条回答
  •  爱一瞬间的悲伤
    2021-01-19 06:28

    Windows have already a task scheduler that you can invoke from command line: Schtasks.exe

    SCHTASKS /parameter [arguments]

    Description: Enables an administrator to create, delete, query, change, run and end scheduled tasks on a local or remote system.

    Parameter List: /Create Creates a new scheduled task.

    /Delete Deletes the scheduled task(s).

    /Query Displays all scheduled tasks.

    /Change Changes the properties of scheduled task.

    /Run Runs the scheduled task on demand.

    /End Stops the currently running scheduled task.

    /ShowSid Shows the security identifier corresponding to a scheduled t ask name.

    /? Displays this help message.

提交回复
热议问题