Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Valid Disk Drives

Status
Not open for further replies.

pac1exl

IS-IT--Management
Nov 21, 2000
12
US
Is there any function\library in MS Access that will list to me all the valid drives that exists in a workstation?
 
Hi pac1exl

Or check out FileSydtemObject. Something like:

Function ShowDriveList()
Dim fso, d, dc, s, n
Set fso = CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
For Each d In dc
s = s & d.DriveLetter & " - "
If d.DriveType = Remote Then
n = d.ShareName
ElseIf d.IsReady Then
n = d.VolumeName
End If
s = s & n & &quot;<BR>&quot;
Next
ShowDriveList = s
End Function


Stew &quot;Even a stopped clock tells the right time twice a day.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top