How to scan entire drive using VB
Posted on 1998-12-23
I want to scan my entire C: drive (or any other drive), including all folders or subdirectories for an specific file type. I am doing that already with the following code, but I am limited to only one folder that I can select:
Last = -1
Image = Dir(DirSelect & "*.ICO")
While Image <> ""
Last = Last + 1
If Last >= 0 Then frmImage.lstFileName.AddItem Image
Image = Dir
DirSelect = PATH
Maybe an API will do it??