Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local drives
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00041719
Message ID:
00041924
Vues:
30
Bela,

There are a couple of Windows API calls (one of which can be called through FOXTOOLS) that can help you determine what drives are available and their type. The declare for the first one is:

DECLARE INTEGER GetLogicalDrives IN Win32API

This will return a 32 bit integer. You can use the BITTEST() function to test to see if a particular drive exists. For example,

lndrives = GetLogicalDrives()
IF BITTEST(lndrives, 0)
* There's an A: drive
ENDIF

To determine the type you can use:

DECLARE INTEGER GetDriveType IN Win32API;
STRING lpRootPathName

or the DriveType function in FOXTOOLS. Look in the FOXTOOLS help file for the parameter descriptions and return values for these.

HTH,

George
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