Windows Task Scheduler Installer

后端 未结 2 863
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 20:01

I have a little .exe written in c# .net that I want to run on the server every 24 hours. So naturally I would just use the Windows Task Schedular rather then doing the math

2条回答
  •  半阙折子戏
    2021-01-12 20:30

    You can use a powershell script or batch file to execute schtasks which is a command line interface to the task scheduler.

    Then you simply need to run the script in order to setup the scheduled task.

    There is also a managed wrapper that allows you to create schedules tasks in C#, if you would rather go that way.

提交回复
热议问题