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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top