"Rainer Faulstich" <Ra************ **@ifp-beisch.com> wrote in message
news:d2******** *************** ***@posting.goo gle.com...
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 "SystemDriv e", or better use
Environment.Spe cialFolder.Syst em to get the system32 path.
string systemDrive = Environment.Exp andEnvironmentV ariables(%Syste mDrive%);
string s = Environment.Get FolderPath(Envi ronment.Special Folder.System);
Willy.