This is the sort of task for which the advanced commands (on the comand line or in batch files or aliases) in JPSoftware's Take Command 32 or 4NT are perfect. The following 1-line command will output the names of (and number of files in) any subfolder (at any level), which contains fewer than 20 files. (this could be edited to count only files meeting wildcard or attribute requirements):
Code: Select all
global /i /q if %@files[*] LT 20 echo %_cwd %@files[*]
Or for a more general solution you could define the alias:
Code: Select all
alias fewfiles=global /i /q if %%@files[%%1] LT %%2 echo %%_cwd %%@files[%%1]
and then invoke it like:
If you prefered you could list (or save to a file) all the filenames in these "small" folders, etc, etc...
You can download a full-featured 30-day trial version from:
http://jpsoftware.com