| 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 .... Public Function FileExists(Fname As String) As Boolean If Fname = "" Or Right(Fname, 1) = "\" Then FileExists = False: Exit Function End If FileExists = (Dir(Fname) <> "") End Function |
Determine if a File Exists (All VB Versions) |
Express News India | Freelance ecommerce web development India