Question : c# last execution time of a process and kiling the last process of the same application

Hi there;

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#?

Best regards.

Answer : c# last execution time of a process and kiling the last process of the same application

myProcessObject.StartTime helps to solve this issue.
Random Solutions  
 
programming4us programming4us