FileExists

Returns True if the specified file exists.


Syntax

FileSystem.FileExists(File)


Parameters


File

String, input



Name and path of the file.


Example

Sub Main()

If FileSystem.FileExists ("C:\Users\Public\My Directory\Test.txt") Then

MsgBox "File Test.txt found."

Else

MsgBox "File Test.txt not found."

End If

End Sub