>Is there a function which return the OS (Win95/98/NT or 2000)
>I'm looking for a way of detexting the Windows System Folder
>(Seems to be either c:\Windows or C:\WINNT... is it different in Win 2000 ?)
>
>Regards,
>
>Gerard
This will give you the WinSys folder location:
lcBuffer = SPACE(255)
DECLARE INTEGER GetSystemDirectory IN WIN32API STRING, INTEGER
lnNameLength = GetSystemDirectory(@lcBuffer, 255)
lcSystemDir = LEFT(lcBuffer, lnNameLength)
This was taken from the API section of UT under the System INfo category.
Mark McCasland
Midlothian, TX USA