Determine if a File Exists Within a Given Directory SubTree

Category:
Files and Directories
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
This snippet shows you how to use the SearchTreeForFile API function to determine if a file exists within a specified drive/directory or any child subdirectories. See comments within code for usage and example.

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

Declarations:

Code: