How do I get a reference on the Installation Dir?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

C#

Is there a way I can retrieve the installation directory from within my
code? I have a config file which gets dumped into the instal dir when they
instal, and in my code I need to get to that file. At the moment I am having
to path the whole file, bu there is a chance that they may instal elsewhere.

Thanks

Stve
 
Environment.CurrentDirectory Property

Gets and sets the fully qualified path of the current directory; that is,
the directory from which this process starts.

HTH

Ollie Riches
 
Back
Top