自动化任务 [英] Automated task
问题描述
我有一个C#程序,我想每晚自动运行,而不必这样做,
I have a C# program that I want to run automatically every night without me having to do this,
我相信可以通过设置自动化任务来做到这一点,但是我不确定如何做到这一点?
I believe there is a way of doing this by setting an automated task however im not sure how to do this?
P.S.不确定是否有帮助,但是它的库中有一个.exe文件.
P.S. not sure if this helps but it has a .exe file in its library.
谢谢.
推荐答案
将其注册为计划任务怎么样?
What about registering this as a scheduled task?
转到控制面板->计划任务.
Go to Control Panel -> Scheduled tasks.
在这里,您可以轻松地将exe添加为任务,并选择运行任务的时间和频率.
Here you can easily add your exe as a task and choose when and how often to run your task.
在Windows 7中,此更改有所更改,但是您可以在以下位置找到它
In Windows 7 this is changed somewhat, but you can find it in
控制面板->系统和安全->管理工具->任务计划程序
Control Panel -> System and Security -> Administrative Tools -> Task Scheduler
这篇关于自动化任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!