M
M
m2_viktor2015-12-18 18:12:17
cmd/bat
m2_viktor, 2015-12-18 18:12:17

How to search for directories larger than a certain size in cmd?

You need to search for directories larger than a certain size, but directories and not files. Found a very cool way to search for large . But I have a slightly different situation, I have directories in which there are thousands of small files, and therefore I need to select directories, files are not of interest.

forfiles /p c:\ /s /c "cmd /c if @fsize gtr 100000 echo @file @fsize"

Perhaps this can be combined with@isdir==TRUE

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question