Getting the path of a working process

  • Thread starter Thread starter Dakkar
  • Start date Start date
D

Dakkar

I want to get the full path of the processes with c# but i dont know
how
is something like that possible if it is how?
Thanks
 
For a windows form application it would be:
Application.ExecutablePath

Not sure about Webservices/webapps.
--
Thanks
Wayne Sepega
Jacksonville, Fl


"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Dakkar said:
I want to get the full path of the processes with c# but i dont know
how
is something like that possible if it is how?
Thanks
 
Try
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName

This gives full path.


Dakkar said:
I want to get the full path of the processes with c# but i dont know
how
is something like that possible if it is how?
Thanks
 
Back
Top