FileExists Function

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

āļšāˇāļģāļš āļģ⎓āļ­āˇ’āļē:


FileExists(FileName As String | DirectoryName As String)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Bool

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

File: āļąāˇ’āˇāˇŠāˇ€āļ­ āļœāˇœāļąāˇ” āļ´āˇ’āļģ⎒⎀⎒āļ­āļģāļēāļšāˇŠ āļ‡āļ­āˇ’ āļ•āļąāˇ‘āļ¸ āļ­āļąāˇŠāļ­āˇ” āļ´āˇŠâ€āļģāļšāˇāˇāļąāļēāļšāˇŠ. āļ”āļļāļ§ URL āļ…āļ‚āļšāļąāļē āļˇāˇāˇ€āˇ’āļ­āˇ āļšāˇ’āļģ⎓āļ¸āļ¯ āļšāļŊ ⎄⎐āļš.

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

Please support us!