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:
00609530
Vues:
20
>>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.
*********
Can WSH give the information you get by clicking on the 'network neighborhood' icon? That is all workstations on the network and all the drives on those workstations?
Dr. Ken A. McGinnis
Healthcare software design
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform