windows kill program cmd code example
Example 1: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
Example 2: kill process cmd
netstat -ano | findstr :3000
taskkill /PID "123" /F
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
netstat -ano | findstr :3000
taskkill /PID "123" /F