Determine if a Directory Exists (All VB Versions)

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Shane Arnfield

Version Compatibility:

More information:
A simple function for all VB version to determine the existence of a directory.

Example - If DirExists("DirName") then ....

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

Declarations:

Code: