>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