Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing all available drives both local and networked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00418998
Message ID:
00419021
Vues:
32
>>How can i list all the drives wherther local or networked mapped drives. Do i need to use an API function ?? help,please !!
>
>Depending on what's available to you, you can use calls to the Win32API, or simply use the Scripting.FileSystemObject from WSH and access it's Drives collection, which will provide a tremendous amount of information by traversal of the Drives collection:
>
>
oFSO = CREATEOBJ('Scripting.FileSystemObject')
>FOR EACH Drive in oFSO.Drives
>   ? Drive.DriveLetter,Drive.AvailableSpace,Drive.DriveType
>ENDFOR
>
>See the WSH docs in the MSDN, or through th WSH-related sites in my sig block.

I knew you were going to beat me to this.

Speaking of the FSO...well, you know what I'm asking.:-)
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