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.
LVL 3
charlietouAsked:
Who is Participating?
 
charlietouAuthor Commented:
Nice trick!

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

Thanks for the tip.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.