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

directory list box - deleting a directory

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
daron
Asked:
daron
1 Solution
 
AzraSoundCommented:
http://www.vb-helper.com/Howto/rrmdir.zip

shows how to recurse through the directory and delete all subfolders and files within it
0
 
moterkCommented:
kill dir1.path & "*.*"

should be:

kill dir1.path & "\*.*"

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