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