Solved

Verifying an empty directory exists...

Posted on 1999-01-11
1
179 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 84
Problem to skip loop 6 56
Excel VBA, find a string in a column, update a cell 7 77
How to Add / Edit Windows Menu 4 59
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

813 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

13 Experts available now in Live!

Get 1:1 Help Now