How to kill all the python processes

If you got some errors or many windows open with python scripts that you want to close you can use this command from the cmd

taskkill /im python.exe

You can also create a batch file called kill.bat with this command and place it in a folder that is seen as an eviromental variable so that you just can write the command kill to eliminate all the running threads of the python running scripts.

taskkill /im python.exe

Force to close an application

If you want to force an app that is stuck you add /F to the previous command

taskkill /im python.exe /F


Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.