• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Verifying an empty directory exists...

I need to verify that a directory exists (even if it's empty). Does DIR() only work at file level as I don't seem to be able to get it to recognise an empty dir. It appears to work if the dir contains one or more files, but my program needs empty directories.
0
lbowers
Asked:
lbowers
1 Solution
 
clifABBCommented:
If Dir("c:\Test1", vbDirectory) <> "" Then
  'The Directory exists
End If

0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now