Question about GetProcessByName - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: Question about GetProcessByName (/showthread.php?tid=18563) |
Question about GetProcessByName - iCrack - 05-06-2011 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... RE: Question about GetProcessByName - Gaijin - 05-06-2011 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. RE: Question about GetProcessByName - iCrack - 05-06-2011 (05-06-2011, 05:44 PM)Gaijin Wrote: I'm just guessing now, didn't use C# for a while now. Thanks for the info! That was what I thought but doesn't hurt to re-check... |