FileExists Function

निर्धारित करता है कि डाटा मीडियम में कोई फ़ाइल या डिरेक्ट्री उपलब्ध है.

Syntax:

FileExists(FileName As String | DirectoryName As String)

वापसी मूल्य:

Bool

पैरामीटर

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

Error codes:

5 Invalid procedure call

उदाहरण:

Sub ExampleFileExists

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

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

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

End Sub