Thursday, April 25, 2019

windows: kill process by id using cmd

The most old games do not run on Windows 10. For example Red Alert and GTA San Andreas. Those games require DirectPlay in Windows 10 (legacy feature.
Before you try your old games you need to run cmd in administrator mode. In case the game does not play properly, switch to cmd and stop the game. 
To search pid for RA2
tasklist -v | find "RA2.exe"
tasklist -v | find "GAME.exe"
GAME.EXE                      7356 Console                    4    139,172 K Not Responding  xxx\xxx                                             0:02:48 Red Alert 2
To kill the process
taskkill /F /PID 7356
SUCCESS: The process with PID 7356 has been terminated.

No comments:

Post a Comment