I'm trying to terminate GTA 5 when it doesn't respond, but when I run the batch file, it says :
"SUCCESS: Sent termination signal to the process with PID 3220."
But it doesn't stop it.
taskkill /fi "imagename eq GTA5.exe" /fi "status eq Not Responding"
I also tried to use tasklist
and extract from it if the task isn't responding, but I didn't find out how.