05-06-2011, 05:44 PM
I'm just guessing now, didn't use C# for a while now.
GetProcessesByName(processName) should get all instances of "notepad", including "Notepad" and "NoTePaD".
So processName is as far as I know case-insensitive.
On the other hand, the member of Process, Process.ProcessName is case-sensitive.
GetProcessesByName(processName) should get all instances of "notepad", including "Notepad" and "NoTePaD".
So processName is as far as I know case-insensitive.
On the other hand, the member of Process, Process.ProcessName is case-sensitive.