I want to detect whether a process with a certain name and also specific command line arguments is already running. I use Process.GetProcessesByName
to get the list of processes and tried to check the argument field of each processes StartInfo
property - it's always empty. Why?
I tried starting with administrative rights. I worked around the issue by using a WMI query eventually, but am not satisfied ...