FileExists Function

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

தொடரமைப்பு:

FileExists(FileName As String | DirectoryName As String)

Return value:

Bool

அளவுருக்கள்:

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

பிழையான குறியீடுகள்:

5 செல்லாத செயல்முறை அழைப்பு

எடுத்துக்காட்டு:

Sub ExampleFileExists

    MsgBox FileExists("C:\autoexec.bat")

    MsgBox FileExists("file:///d|/bookmark.htm")

    MsgBox FileExists("file:///d|/Private")

End Sub