Get all Files a Folder and its SubFolders using Wildcards

Category:
Files and Directories
Type:
Snippets
Difficulty:
Intermediate

Author: Alexander Triantafyllou

Version Compatibility: Visual Basic 6

More information:
Returns a string representing all files from a directory and, optinoally, its subdirectories using WILDCARDS . This means you can use the * character. The ? character is not yet implemented. Requires a reference to Microsoft Scripting Runtime.

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

Declarations:

Code: