Determine if a Directory Exists (VB 6+)

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

Version Compatibility: Visual Basic 6

More information:
In VB6, determining if a directory exists is very easy using the Scripting.FileSystem Object. A reference to the Scripting runtime (SCRRUN.DLL) is necessary

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

Declarations:

Code: