how to stop cmd process code example Example 1: cmd kill pid taskkill /F /PID pid_number Example 2: kill process in win by pid kill task by pid