且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows任务计划程序安装程序

更新时间:2022-12-02 18:47:12

您可以使用PowerShell脚本或批处理文件来执行的 的schtasks 这是一个命令行界面的任务调度。

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.

还有一个托管包装,使您可以用C#创建计划任务,如果你宁愿走那条路。

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