Tag Archives: fileexists

Check if a File Exists using Visual Basic 6.0

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Snippe to check if a File Exists or not using VB 6.0 and older.

Public Function FileExists(strPath As String) As Integer 

FileExists = Not (Dir(strPath) = "")

End Function