windwos how to kill process knowing its pid code example Example 1: kill process in win by pid kill task by pid Example 2: kill process in win by pid kill process by pid