"parsifal" <se*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi,
I'm wondering how you can use the standard C# library to get the
"windows" directory? (e.g. "c:/windows"). I need to specify the
location of a config file in a service, and I don't want to hard-code
anything.
Thanks.
Environment.GetEnvironmentVariable("windir");
Note that a config file should not reside in the windows directory either,
it should reside in the same directory as your service .exe.
Willy.