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.
 
Hi,
May be, Application.StartupPath is what you are looking for? It is in the
System.Windows.Forms namespace. Check it out...
 
Back
Top