Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing all available drives both local and networked
Message
 
À
21/09/2000 09:50:37
Rene Van Den Berg
Infertility Database Systems Ltd
Islington, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00418998
Message ID:
00419020
Vues:
26
>How can i list all the drives wherther local or networked mapped drives. Do i need to use an API function ?? help,please !!

Rene,

There are a couple of ways to do this. There are two API calls which might be of interest. GetLogicalDrives() and GetLogicalDriveStrings(). The former returns a 32 bit integer. If an individual bit is set then the drive is mapped (ie.: bit 0 = A, bit 1 = B, etc.) GetLogicalDriveStrings() returns a delimited string containing the actual letters.

The other way is to use the Window Script Host's FileSystemObject's drives collection.
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