Jul-19-2020, 12:27 PM
Also try not to use
subprocess replace it.
os.system()
anymore.subprocess replace it.
import subprocess subprocess.run("taskkill /im chrome.exe /f") # Or the safer way if think of shell injection vulnerabilities #subprocess.run(['taskkill', '/im', 'chrome.exe', '/f'], shell=False)