【Python】断网检测从新启动客户端程序

每一个5秒检测一次网络,若断网,则关闭上网客户端而且从新打开。 须要在管理员权限下打开cmd运行。python # encoding: utf-8 import os import time def restart_Drc(): command = 'taskkill /F /IM DrClient.exe' os.system(command) command = 't
相关文章
相关标签/搜索