[RESOLVED] VB 2005 - Get process name programmatically
If I start a program via "Process.Start(c:\...)", is there a way of obtaining the "process name" of said program for use in "Process.GetProcessesByName(...).Length" or any other way?
This is why you should read the documentation for the types and methods you use. Doing that would have told you that Process.Start is a function, not a procedure. That means that it returns a value, which in this case is a Process object representing the process you just started. The Process class has a ProcessName property.