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
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