python check if is exe code example
Example: python check if exe is running
import subprocess
s = subprocess.check_output('tasklist', shell=True)
if "cmd.exe" in s:
print s
import subprocess
s = subprocess.check_output('tasklist', shell=True)
if "cmd.exe" in s:
print s