Solved

Verifying an empty directory exists...

Posted on 1999-01-11
1
176 Views
Last Modified: 2010-05-03
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
Comment
Question by:lbowers
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 50 total points
ID: 1455457
If Dir("c:\Test1", vbDirectory) <> "" Then
  'The Directory exists
End If

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now