DirectoryExists

Returns True if the specified directory exists.


Syntax

FileSystem.DirectoryExists(Directory)


Parameters


Directory

String, input



Path of the directory.


Example

Sub Main()

If FileSystem.DirectoryExists ("C:\Users\Public\NewDirectory") Then

MsgBox "Directory C:\Users\Public\NewDirectory found."

Else

MsgBox "Directory C:\Users\Public\NewDirectory not found."

End If

End Sub