I have an issue with a program which sometimes doesn't quit correctly. I still working to fix it but I need a workaround to be able to kill the process for now.
Problem is that I can't kill it with the command like :
taskkill /PID <pid> /T /F
I have an error : "There is no running instance of the task"
However, it is possible to kill it by opening the task manager and stopping the process from here.
So I was wondering what command the task manager was sending to end the process which could be used in a script ? Or maybe another method ?
EDIT : picture of the problem
It is written in french, the translation is :
Error : process with PID 9664 <child of process with PID 4920> can't be stopped
Cause : There is no running instance of the task