Get all Files and Subdirectory Names Within a Path Without Recursion

Category:
Files and Directories
Type:
Modules
Difficulty:
Intermediate
Author:
JOHN ALMAND

Version Compatibility: Visual Basic 6

More information:
This is a standard module for logging a Windows path. It makes a list of the files in a folder and all of its subfolders, given a valid Windows path, i.e. "c:\Windows\System\". It is NON-recursive. It does not call itself.

VB6 and a reference to the Scripting Runtime is required.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: