I know that in windows cmd I can type the following text to end a process:
taskkill/im chrome.exe /f
But how can I do it using Python?
I've tried this:
from subprocess import *
call("taskkill/im chrome.exe /f", shell=True)
But it showed this:
'taskkill' is not recognized as an internal or external command, operable program or batch file.
So what's wrong with my code? How can I make it work?