FileExists Function

ডাটা মাধ্যমে ফাইল অথবা ডিরেক্টরি বিদ্যমান কিনা তা নির্ধারণ করা হয়।

সিনট্যাক্স:

FileExists(FileName As String | DirectoryName As String)

প্রদান মান:

Bool

প্যারামিটার:

FileName | DirectoryName: যেকোনো স্ট্রিং এক্সপ্রেশন যাতে ফাইলের নির্দিষ্ট বৈশিষ্ট্যের উল্লেখ রয়েছে। আপনি 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