Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the windows directory ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00065888
Message ID:
00065905
Vues:
32
>>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform