>>Please can somebody help me to get a function to get the path to the WINDOWS SYSTEM DIRECTORY for all Windows version (Windows 98 until XP).
>>SYS(2004) brings me depending on the Windows version C:\program files\.....
>>
>>I would need to address the REAL WINDOWS system or system32 directory.
>>Thank you so much for your help.
>>
>>Johann Pietschnig
>>pietschnig@usa.com
>
>There should be a listing for the GetSystemDirectory() function, with example, in the UT API section.
Ah, here's the the full listing:
DECLARE INTEGER GetSystemDirectory IN Win32API;
STRING @lpbuffer, INTEGER uSize
lcbuffer = SPACE(261)
lnresult = GetSystemDirectory(@lcbuffer, 261)
? LEFT(lcbufferm, lnresult)
George
Ubi caritas et amor, deus ibi est