Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about GetProcessByName
#1
PHP Code:
Dim notepad() As Process System.Diagnostics.Process.GetProcessesByName("notepad"

Just wondering if this gets process "NoTePaD" or "Notepad" or only "notepad"? Simple question but I'm confused... Wacko
[Image: just-cause-2-header.jpg]
Reply
#2
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.
Reply
#3
(05-06-2011, 05:44 PM)Gaijin Wrote: 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.

Thanks for the info! That was what I thought but doesn't hurt to re-check... Ninja
[Image: just-cause-2-header.jpg]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)