Reputation: 1921
I'm wondering how to do this in python.
C:\>Taskkill /IM program.exe /F
What I have so far is this. I just don't know how to add the /F
flag
comm = "taskkill /im " + myprogram
os.system(comm)
Upvotes: 0
Views: 46
Reputation: 853
I think this code below works :
comm = “{} {}“.format(comm, " /F")
Upvotes: 1