I have a problem reading and identifying a process, it turns out that they are 3 different processes but they have the same name, the only thing that differs is the PID and the Command line
I am using the following line of code:
Process[] process = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(name));
if (process.Length == 1)
{....}
I know you are going to tell me to use the getprocessbyID
but I do not want to use the PID since I understand that this can change in the processes.
Do you know any way to review the processes by Command line?
I remain attentive.