Solved

directory list box - deleting a directory

Posted on 2000-04-30
2
153 Views
Last Modified: 2010-05-02
How can I determine which folder I've selected and then delete that selected folder?  
I have tried using
kill dir1.path & "*.*" followed by
rmdir dir1.path  

then I call
dir1.refresh

I would think this would work, but I must be missing something.

If I need to be doing this another way, I'm willing to change the methods.

Thanks in advance for the help.
Daron
0
Comment
Question by:daron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 10 total points
ID: 2764895
http://www.vb-helper.com/Howto/rrmdir.zip

shows how to recurse through the directory and delete all subfolders and files within it
0
 

Expert Comment

by:moterk
ID: 2766451
kill dir1.path & "*.*"

should be:

kill dir1.path & "\*.*"

0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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