How can I check to see if a directory exists ?
Printable View
How can I check to see if a directory exists ?
Use the dir() function, i.e. to see if d:\tmp exists use
If Dir("d:\tmp", vbDirectory) <> "" Then
MsgBox "Dir exists"
Else
MsgBox "Dir does not exist"
End If