kill a python process windows code example
Example 1: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
Example 2: python kill script
import sys
sys.exit()
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
import sys
sys.exit()