Drive List and Directory List 
Author Message
 Drive List and Directory List

How do I setup a drive list box and a directory list box since Microsoft
Word doesn't have these on the tool bar?

Tue, 16 Jul 2002 03:00:00 GMT  
 Drive List and Directory List
Try the following:

Sub ShowDriveList()
    Dim fs, d, dc, s
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set dc = fs.Drives
    For Each d In dc
      s = s & d.DriveLetter
      s = s & vbCrLf
    MsgBox s
End Sub

Sat, 28 Sep 2002 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Where are File, Drive, and Directory list boxes?

2. drive/directory/file list

3. Directory List Boxes and Blank Drives

4. Full drive directory/file listing code wanted

5. Q: Drive and Directory List Box Icons

6. Treeview - Drive/directory listing

7. how can i print a list of all directories on hard drive

8. Directory list in the list box

9. getting list of directories into list box

10. Reading Drive Settings (BIOS or Drive List Box)

11. Network drives in a drive list box control

12. directories and sub-directories in the list


Powered by phpBB® Forum Software