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

Need batch file to cycle through directories & delete empty ones

Hi folks,

I have a client who has a file server with thousands upon thousands of folders.  Over the course of time, duplicate folders or slightly renamed folders were created that have no contents.  I want to quickly identify and delete the empty directories.  

Can someone help me with the batch file commands to do this? Or, is there a freeware or low-cost software program that does this?

Thanks for your help.
1 Solution
charlietouAuthor Commented:
Nice trick!

The directory went from 9,500+ folders down to 6500+ with this procedure.

Thanks for the tip.


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now