I\'m looking to write some code that will kill off a process based on it\'s name and who owns it. This works fine on Windows XP but when I come to run the same code on Windo
In case psutil does not work, you can always try using taskkill through os.system (command prompt) Example to kill all excel instances:
import os os.system("""taskkill /f /im excel.exe""")