I would think you could just use taskkill and the Python os.system()
import os
os.system("taskkill /im make.exe")
Note: I would just note you might have to fully qualify the taskkill path. I am using a Linux box so I can’t test…
More Related Contents:
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- How to clear the interpreter console?
- Permanently add a directory to PYTHONPATH?
- How to start a python file while Windows starts?
- Run Python script without Windows console appearing
- Popen waiting for child process even when the immediate child has terminated
- What is the correct way to set Python’s locale on Windows?
- Shebang Notation: Python Scripts on Windows and Linux?
- Run Process and Don’t Wait
- How to make python scripts executable on Windows? [duplicate]
- Get HWND of each Window?
- Python | accessing dll using ctypes
- ImportError DLL load failed importing _tkinter
- OpenCV for Python 3.x under Windows [duplicate]
- Run process as admin with subprocess.run in python
- shutil.rmtree fails on Windows with ‘Access is denied’ [duplicate]
- Running Cython in Windows x64 – fatal error C1083: Cannot open include file: ‘basetsd.h’: No such file or directory
- Screenshot of inactive window PrintWindow + win32gui
- Tkinter, Windows: How to view window in windows task bar which has no title bar?
- Colorama for Python, Not returning colored print lines on Windows
- How to install xgboost in Anaconda Python (Windows platform)?
- Change console font in Windows
- Build a wheel/egg and all dependencies for a python project
- How to install lxml on Windows
- Pyodbc error Data source name not found and no default driver specified paradox
- chcp 65001 codepage results in program termination without any error
- A Python script that activates the virtualenv and then runs another Python script?
- How to display text on the screen without a window using Python
- How to process huge text files that contain EOF / Ctrl-Z characters using Python on Windows?
- java.io.IOException: Cannot run program “python” using Spark in Pycharm (Windows)