本文介绍了每隔24小时重新启动一次系统和exe.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-SA
Don''t do evil. If you have functionality problems, fix them. Everything else means fooling everyone, but first of all yourself.
—SA
大家好, 我有一个VPS,我在其中放置了代码,但由于某些功能无法正常工作,因此它有时需要重启系统.因此,我必须为此重新启动系统以及一些.exe文件.请告诉我我可以使用窗口服务来执行这些操作吗?????????? 在此先感谢.
Hello Everyone, I have a VPS in which i put code but its need some times restart system because some functionally not work properly . So i have to restart system for this and also some .exe file. Please tell me can i do these things using window services and how???????? Thanks in Advance.
推荐答案不要做恶.如果您遇到功能问题,请修复它们.其他一切都意味着要愚弄所有人,但首先要欺骗自己.
1.有一个Windows服务项目. 2.安排一个计时器轮询当前系统时间(大约每15分钟一次) 3.指定一个时间段,例如(12Am至12:15Am). 4.如果计时器发现自己在时区内触发,请杀死该exe并/或重新启动系统. 1. Have a windows service project. 2. have a timer polling for current system time (perhaps every 15 minutes or so) 3. specify a time perios like (12Am to 12:15Am). 4. If the timer finds itself firing within the time zone, kill the exe and/or reboot the system.
更多推荐
每隔24小时重新启动一次系统和exe.
发布评论