Difference between revisions of "Command line search for large files"

From Tech-Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:Microsoft]]
 
[[Category:Microsoft]]
 +
'''[[Microsoft#Misc|Back to Misc]]'''
 +
 +
This command below works like DIR /S, however it will list only the files bigger than 10MB.
 
  forfiles /p C:\location /s /m *.* /c "cmd /c if @fsize gtr 10000000 echo @file"
 
  forfiles /p C:\location /s /m *.* /c "cmd /c if @fsize gtr 10000000 echo @file"

Latest revision as of 16:58, 10 November 2016

Back to Misc

This command below works like DIR /S, however it will list only the files bigger than 10MB.

forfiles /p C:\location /s /m *.* /c "cmd /c if @fsize gtr 10000000 echo @file"