Link to home
Start Free TrialLog in
Avatar of mindwarpltd
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
Avatar of Point-In-Cyberspace
Point-In-Cyberspace
Flag of Italy image

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.


Avatar of mindwarpltd
mindwarpltd

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.
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.
ASKER CERTIFIED SOLUTION
Avatar of Point-In-Cyberspace
Point-In-Cyberspace
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Doh... not even an assist.  :(