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
http://fcx.org/profile/sebs
Code: If Dir("C:\MyFolder", vbDirectory) <> "" Then Msgbox "Folder exists" Else Msgbox "Folder does not exist" End If
If Dir("C:\MyFolder", vbDirectory) <> "" Then Msgbox "Folder exists" Else Msgbox "Folder does not exist" End If
Forum Rules