kill pid command in windows 10 code example Example 1: cmd kill pid taskkill /F /PID pid_number Example 2: kill process in win by pid kill process by pid