>>Hi to all,
>>which function (if exist) I have to use to obtain the Windows directory paht ( C:\windows or c:\win95 etc.) ?
>>
>>Thanks in advance
>>
>>PS: In C++ I've used the GetWindowsDirectory() of SDK
>
>If you're more comfortable with the API, You can use the GetWindowsDirectory:
>
>DECLARE INTEGER GetWindowsDirectory IN Win32API;
> STRING @ReturnBuffer, INTEGER BufferSize
>
>then
>
>lcbuffer = SPACE(200)
>lnbufsize = LEN(lcbuffer)
>
>lnbufsize = GetWindowsDirectory(@lcbuffer, lnbufsize)
>
>hth,
>
>George
OK thanks to all,
I'll use the GetEnv("WinDir")