Archive: variable $SYSDIR and Windows 2000 ?


variable $SYSDIR and Windows 2000 ?
dear all

I use GetVersion::WindowsName to detect the Windows version.
the installer detects 2000.
But when I check if a file exists under $SYSDIR , the installer send error back ...
What is normally the value of $SYSDIR under 2000 : "c:\windows\system" or "c:\winnt\system32"?

thanks a lot.

best regards


%windir%\system32


Re: variable $SYSDIR and Windows 2000 ?

Originally posted by JCD29
What is normally the value of $SYSDIR under 2000 : "c:\windows\system" or "c:\winnt\system32"?
It depends where you installed Win2k ... it doesn't even have to be on drive C.

The usual location is actually "C:\WINNT\system32", but $SYSDIR will get it right for you ...