I am trying to kill a process executed more than 2 times.
when the third one executes, I am able to kill the process but not the third one but the first one.
I checked for pid and it seems pid is not denoting the last execution time of the process.
So, I need to find the last execution time of the same processes and kill the last one.
How can I do this in C#?