Finding the current executing directory

  • Thread starter Thread starter Raphael Iloh
  • Start date Start date
R

Raphael Iloh

This may sound pretty trivial but it's been driving me nuts; how does one
get the full directory path of the executing application. Using
Environment.CurrentDirectory returns c:\WINNT\System32 - the obviously wrong
path :-(.

This is a Windows development issue so HttpRequest.PhysicalApplicationPath
does not apply. Any suggestions will be appreciated.

Regards, Raphael.
 
...found it; System.IO.Directory.GetCurrentDirectory.

Regards, Raphael.
 
Hi,
May be, Application.StartupPath is what you are looking for? It is in the
System.Windows.Forms namespace. Check it out...
 

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