Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing all available drives both local and networked
Message
 
To
21/09/2000 09:50:37
Rene Van Den Berg
Infertility Database Systems Ltd
Islington, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00418998
Message ID:
00419020
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform