Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell OS version
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00549371
Message ID:
00549382
Vues:
15
>Is there a function which return the OS (Win95/98/NT or 2000)
>I'm looking for a way of detexting the Windows System Folder
>(Seems to be either c:\Windows or C:\WINNT... is it different in Win 2000 ?)
>
>Regards,
>
>Gerard

This will give you the WinSys folder location:
lcBuffer = SPACE(255)
DECLARE INTEGER GetSystemDirectory IN WIN32API STRING, INTEGER
lnNameLength = GetSystemDirectory(@lcBuffer, 255)
lcSystemDir = LEFT(lcBuffer, lnNameLength)
This was taken from the API section of UT under the System INfo category.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform