Determine if a File Exists (All VB Versions)

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

Version Compatibility:

More information:
An easy to use function (to determine if a file exists (No API required)

Use - If FileExists("Filename.xxx") then ....
or - If Not FileExists("Filename.xxx") then ....

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

Declarations:

Code: