Alias ListEmptyFldrs=???

#1
I am having trouble coming up with an alias to list empty folders. I have:

alias noemptys=*del /e /x /y /z /s /ne /a:d

but I am looking for one just to list empty folders. Anyone know of what I need please?

BTW - Happy weekend to everyone!
 
#3
Mikea:
Your alias will list all directories that are empty, i.e., have neither files nor subdirectories. You can add attribute letters to @files parameters to exclude directories from the list that have no files but have subdirectories, or junctions/symlinks, etc. You can also add the /N siwtch to GLOBAL so it will not iterate into junctions. All as the user desires.
 
#4
> Your alias will list all directories that are empty, i.e., have neither files nor subdirectories.

Yep, that's what I was after with that "global" example. Just the simple "...that are empty" solution.
 
#5
I guess what I am looking for is a DEL command or similar that I could use the /N option to say <folder> would be deleted. If test\a test\a\b and test\a\b\c were all empty I would get

test would be deleted
test\a would be deleted
test\a\b would be deleted
test\a\b\c would be deleted

or in reverse order.....

sorry I didn't post my intentions clear enough.....