How can I know if a directory exist on the hard drive?
Printable View
How can I know if a directory exist on the hard drive?
if dir(path) = "" then not existing
else
dir(path) = the name of the directory
Code:If Dir("C:\MyFolder", vbDirectory) <> "" Then
Msgbox "Folder exists"
Else
Msgbox "Folder does not exist"
End If