每隔24小时重新启动一次系统和exe.

编程入门 行业动态 更新时间:2024-10-28 06:27:05
本文介绍了每隔24小时重新启动一次系统和exe.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我有一个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.

推荐答案

不要做恶.如果您遇到功能问题,请修复它们.其他一切都意味着要愚弄所有人,但首先要欺骗自己.
-SA
Don''t do evil. If you have functionality problems, fix them. Everything else means fooling everyone, but first of all yourself.
—SA

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.

本文发布于:2023-10-23 01:33:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519343.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重新启动   每隔   小时   系统   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!