FileExists Function

파일 λ˜λŠ” 디렉토리λ₯Ό 데이터 λ§€μ²΄μ—μ„œ μ‚¬μš©ν•  수 μžˆλŠ”μ§€ ν™•μΈν•©λ‹ˆλ‹€.

ꡬ문:


FileExists(FileName As String | DirectoryName As String)

λ°˜ν™˜ κ°’:

Bool

맀개 λ³€μˆ˜:

FileName | DirectoryName: λͺ…ν™•ν•œ 파일 지정을 ν¬ν•¨ν•˜λŠ” μž„μ˜μ˜ λ¬Έμžμ—΄ μ‹μž…λ‹ˆλ‹€. URL ν‘œκΈ°λ²•μ„ μ‚¬μš©ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


Sub ExampleFileExists
    MsgBox FileExists("C:\autoexec.bat")
    MsgBox FileExists("file:///d|/bookmark.htm")
    MsgBox FileExists("file:///d|/Private")
End Sub

Please support us!