mindwarpltd
asked on
How can I produce a list of empty folder ?
How can I produce a lis of empty folder?
I'm hoping I can use a DOS batch file, so I then just produce a batch file of the ones I want to remove
I'm hoping I can use a DOS batch file, so I then just produce a batch file of the ones I want to remove
dir *. /s
So you get the list of folders.
Now you can create a text file with it:
dir *. /s > folderlist.txt
In text file you can manually remove what you need.
Now you can create a text file with it:
dir *. /s > folderlist.txt
In text file you can manually remove what you need.
ASKER
That produces a list of folders, not empty folders.
I believe this link describes what you want to do:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0710.mspx
It made me a list of the folders on my drive that had a 0 byte count.
Hope that helps.
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0710.mspx
It made me a list of the folders on my drive that had a 0 byte count.
Hope that helps.
ASKER
I got that script to work, but I know nothing about vbs scripts.
It didn't produce a list, it produced a lot of message boxes.
It didn't produce a list, it produced a lot of message boxes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Doh... not even an assist. :(