cmd end task code example Example: windows kill process // Kill process by exe name taskkill /IM "ProcessName.exe" /F