欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

python 判断 360 有没有安装 判断 亚信 有没有安装 我自己亲自做的 有大用 有大大秀

原理 见  /node-admin/23370


python 判断 360 有没有安装


   
#!/usr/bin/python3    
#    
import psutil

   
def is_process_running(process_name):
    for proc in psutil.process_iter(['name']):
        if proc.info['name'] == process_name:
            return True    
    return False    

   
if is_process_running("epplcm.exe"):
# if is_process_running("360safe.exe"):    
    print("进程 epplcm.exe 正在运行...360 已 安装")
else:
    print("进程 epplcm.exe 未运行...360 未 安装")




python 判断 亚信 有没有安装

#!/usr/bin/python3    
#    
#!/usr/bin/python3    
#    
import psutil

   
def is_process_running(process_name):
    for proc in psutil.process_iter(['name']):
        if proc.info['name'] == process_name:
            return True    
    return False    

   
if is_process_running("PccNTMon.exe"):
# if is_process_running("360safe.exe"):    
    print("进程 PccNTMon.exe 正在运行...亚信 已 安装")
else:
    print("进程 PccNTMon.exe 未运行...亚信 未 安装")


普通分类: