How do I know the name of the process that will be run?

hamooza99

Member
Joined
Dec 8, 2012
Messages
6
Programming Experience
3-5
How do I know the name of the process that will be run in vb.net

Example: run Firefox, I want my show a message written in the name of the operation "filefox.exe"
 
A Process object has a ProcessName property. If you call a Shared overload of Process.Start then it returns a Process object. No object is returned if an existing process is used, e.g. a new tab is added to an open Firefox window. In that case you'd just have to use the EXE name.
 
Back
Top