9osbA‖

DMA45‖FileExists Function

FkmEu‖Determines if a file or a directory is available on the data medium.

YoaeH‖Syntax:


Tvkos‖FileExists(FileName As String | DirectoryName As String)

iTkt5‖Return value:

5BiAv‖Bool

FZhAY‖Parameters:

EBMCG‖FileName | DirectoryName: Any string expression that contains an unambiguous file specification. You can also use URL notation.

SEjHR‖Error codes:

5 Invalid procedure call

uHp57‖Example:


Sub ExampleFileExists
    MsgBox FileExists("C:\autoexec.bat")
    MsgBox FileExists("file:///d|/bookmark.htm")
    MsgBox FileExists("file:///d|/Private")
End Sub