nSize = 255
lpBuffer = SPACE(nSize)
Declare Long GetSystemDirectory in "kernel32.dll";
String @, ;
Long @
=GetSystemDirectory(@lpBuffer,@nSize)
?"SystemDirectory: "+left(lpBuffer,at(" ",lpBuffer)-2)
>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