I have the following code:
import os
os.system("TASKKILL /F /IM notepad.exe")
I am aware that this command will forcefully kill the "notepad.exe" process. What I would like to know is, can I make that command more specific?
If I had both "helloworld.txt" and "goodbyeworld.txt" open, could I edit the code in any way to only kill "goodbyeworld.txt", instead of "notepad.exe" in general?