def __Is_Process_Running(self,p_w_picpathname):
p=os.popen('tasklist /FI "IMAGENAME eq %s"' % p_w_picpathname)
return p.read().count(p_w_picpathname)
返回值大于0 则表明有这个进程名的程序在运行
转载于:https://blog.51cto.com/lamb26/515210