Automated task

感情迁移 提交于 2019-12-13 01:11:53

问题


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. not sure if this helps but it has a .exe file in its library.

Thanks in advance.


回答1:


What about registering this as a scheduled task?

Go to Control Panel -> Scheduled tasks.

Here you can easily add your exe as a task and choose when and how often to run your task.

In Windows 7 this is changed somewhat, but you can find it in

Control Panel -> System and Security -> Administrative Tools -> Task Scheduler




回答2:


Have a look at Windows Scheduled Tasks, not sure if it's available only on Windows Server or also XP, Vista, 7...




回答3:


You can schedule tasks to run at whatever interval you like. I don't know what version of Windows you are using but here's how to it in Windows XP




回答4:


You can use "Scheduled Tasks" on windows. You could also write your application as a "Windows Service". By this, it would run all the time on a machine, without someone creating a scheduled task.




回答5:


Windows scheduled tasks is the right way.

Look here for more information.

And here for how to do it in Windows 7



来源:https://stackoverflow.com/questions/4885640/automated-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!