Get path and exe file for process.

swu

Active member
Joined
Mar 26, 2005
Messages
33
Programming Experience
1-3
I'm trying to get the path and exe file for a process.

I'm trying the following with no sucess.

app = pProcess.StartInfo.FileName

and

app = pProcess.MainModule.FileName.ToString

Any suggestions?

Thanks in advance.
 
Application.StartUpPath is the startup path of the main executable

The Application namespace has more info for what you need
 
Back
Top