You can use the DIR$ command like so:
If Dir$(dirName, ATTR_DIRECTORY) = "" Then 'Directory does not exist Else 'Directory does exist End If