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

From Tech-Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
'''[[Microsoft#Misc|Back to Misc]]'''
 
'''[[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 17: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"