yes, here it is the code, try it and let me know if it worked :
Dim AllDir
Private Sub Form_Load()
On Error Resume Next
For i = 65 To 90
x = Dir(Chr(i) & ":\", vbDirectory + vbHidden + vbSystem)
If Err = 52 Then
Err.Clear
Else
If x <> "" Then AllDir = AllDir & (Chr(i) & ":\")
Err.Clear
End If
Next i
MsgBox AllDir
End Sub
Hope this helps...
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Offline 3,138 posts
since Nov 2007