FileSystemObject model - how to list files in a directory (VB6)
Here's a simple VB6 code snippet that uses the FileSystemObjec t model to find all the files in C:\Temp and load their names into a listbox. To use this sample, you need to set things up as follows:
Create a new project in VB6
Add a form (this will probably happen by default, anyway)
Pull down the Project menu and choose References.
Find Microsoft Scripting Runtime and fill in the checkbox to select it. Click OK.