English 中文(简体)
与窗口服务合作(c#)
原标题:working with windows services (c#)
  • 时间:2009-09-17 11:01:26
  •  标签:

我在申请胜诉时建立了立案档案。 在安装了这套装置后,我只想在一天某个特定时间操作该档案。

不包括:每天12个方案自动覆盖人口

如何做到这一点? 任何想法?

问题回答

加入 视窗任务表是最容易的方式。

我从未这样做过,但是在安排期间应该能够这样做。 (即使这意味着在设立期间执行一些额外的法典) 问题在于task appr 在Vista之前和之后。 http://msdn.microsoft.com/en-us/library/a384138(VS.85).aspx“rel=“nofollow noretinger”>API,Vista and better also have a special andline application<

You can call "C:WINDOWSsystem32at.exe" to schedule programs to run. Watch out for the program overlapping the next run as well.

请不要这样做:

"Add a timer to windows service that will check every 3 minutes for example if it is the time to execute" If you must that use an interval timer, at least do the maths and calculate the interval so windows can swap the damn thing out.

关于你,我只收到100万个小笔短片,每30秒钟才能检查,如果他们回想像现在这样运行。 他们中没有人要感谢。





相关问题
热门标签