Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the windows directory ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00065888
Message ID:
00065905
Views:
27
>>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")
Renato Bertuol (EMail:renato.bertuol@elmec.it
Homepage:www.geocities.com/SiliconValley/Horizon/3216)
Elmec Informatica (URL www.elmec.it)
Previous
Reply
Map
View

Click here to load this message in the networking platform