StartInfo.WorkingDirectory

sathya.cs

Active member
Joined
May 24, 2009
Messages
31
Programming Experience
Beginner
Process1.StartInfo.WorkingDirectory is not returning the path of the process and Process1.StartInfo.FileName is not returning the file name?
 
The ProcessStartInfo class is for controlling how a process is started when you start one yourself, not for determining how a process that you didn't start was started. The StartInfo property is not relevant to existing processes; only new process that you start.
 
process.MainModule.FileName gets the full path. I'm not aware of any way to find the current working directory of any process.
 
Back
Top