Three Different Methods of Enumerating Files in a Folder
Category:Files and Directories
Version Compatibility: Visual Basic 6, Visual Basic 5
This module (a sample app is included) contains three different ways (API, the Dir method, and the file system object) of recursively enumerating the names of files in a folder. You can use the one that works best for you, though in FreeVBCode.com's test, the API method was much faster when working with folders that contain many files.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.