"Rainer Faulstich" <Ra**************@ifp-beisch.com> wrote in message
news:d2**************************@posting.google.c om...
Hi,
I need to get the directory i.e. the partition of the system directory
for XP .
I need to create a file - in the "?:/windows/system32" directory . But
in which partition is is located ?. I think for everyone writing
installers this is a "klacks" - i.e. "nothing to think about it" as we
call it in germany .
Please Think about it
Rainer
Read the Environment variable "SystemDrive", or better use
Environment.SpecialFolder.System to get the system32 path.
string systemDrive = Environment.ExpandEnvironmentVariables(%SystemDriv e%);
string s = Environment.GetFolderPath(Environment.SpecialFolde r.System);
Willy.