VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Basic FileExist

by samon_18 (1 Submission)
Category: Files/File Controls/Input/Output
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

Check to see if a File exists, simple code

Rate Basic FileExist

Dim Script As Object
Set Script = CreateObject("Scripting.filesystemobject")
If Script.FileExists("C:\My Documents\Prog.exe") = True Then
'True code here
Else
'False code here
End if

Download this snippet    Add to My Saved Code

Basic FileExist Comments

No comments have been posted about Basic FileExist. Why not be the first to post a comment about Basic FileExist.

Post your comment

Subject:
Message:
0/1000 characters