Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SysDir--How to find it?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00209098
Message ID:
00209104
Vues:
19
>How do I determine what the current Windows\System directory is? Can I use an API call, or is there is VFP command that I'm over looking?
>
>Thanks!

Hi Paul,

Use the following to get the Windows System Directory:
DECLARE INTEGER GetSystemDirectory IN Win32API;
  STRING @lpBuffer, INTEGER uSize
lcbuffer = SPACE(260)
lnsize = LEN(lcbuffer)
lnsize = GetSystemDirectory(@lcbuffer, lnsize)
IF lnsize > 0
  lcbuffer = LEFT(lcbuffer, lnsize)
ENDIF
If the function fails, the value will be zero.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform