Quick Question about deleting empty folders 
Author Message
 Quick Question about deleting empty folders

Can someone help me with a code snippet?  I need a script that will take a
directory as a starting place and search it and all subs.  When it finds a
subfolder that is completely empty (no folders or files) it places the path
in an array (or dictionary), then later reads all paths in the array and
deletes them.

It would be possible that a folder has only an empty folder in it...so once
the child is deleted the parent would then be able to be deleted.

Thanks in advance!


Thu, 21 Aug 2003 12:00:46 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Delete Empty Folders

2. How delete empty folder with vbscript

3. Delete Empty Folders

4. Emptying Outlook Deleted Items Folder.

5. deleting non-empty folders

6. Empty folder OK, 2 more questions

7. How to delete folders/files within a folder but not the folder itself

8. FileSystemObject Delete folder question?

9. API, WM_SETEXT, quick question, need quick answer please

10. Deleting certian Files in Folders and there sub folders

11. Deleting mails in deleted folder

12. Programmatically delete Deleted Items folder once a day


Powered by phpBB® Forum Software