Home » Questions » Computers [ Ask a new question ]

Is there a Windows command-line utility to list largest files exceeding specific size in sub-directories?

Is there a Windows command-line utility to list largest files exceeding specific size in sub-directories?

Would like to be able to find full paths of files in a directory tree that exceed a specific size (say 10MB).

Asked by: Guest | Views: 126
Total answers/comments: 5
Guest [Entry]

"forfiles /P D:\ /M *.* /S /D +""01/17/2012"" /C ""cmd /c if @fsize gtr 209715200 echo @path @fsize @fdate @ftime""

will scan D:\ and its sub-directories, look for all files whose last modified dates are greater than ""17-JAN-2012"" and whose sizes are greater than or equal to 200MB, then print their details.

forfiles is included on some Windows Servers, but not by default on Windows XP. You can extract it from the ""Windows Server 2003 Resource Kit"" download at http://www.microsoft.com/download/en/details.aspx?id=17657 (althou it says is for Windows Server, it runs on Win XP without problems)."
Guest [Entry]

"The Linux utilities port at UnxUtils contains the Linux find command.

You should rename find.exe to something else, example xfind.exe, as find is a built-in function in the Windows Command Prompt. You can then find all file larger then 1000000 bytes by:

xfind directory -size +1000000 -print

Here is the doc for the Linux command find, but I do not know how exactly it was implemented in UnxUtils and for which version of find."
Guest [Entry]

"I've just happened upon the command line tool, Disksum, which seems similar to to diruse, but gives two forms of output:

sorted by file counts per directory (ascending)
sorted by directory size (ascending)"
Guest [Entry]

"I believe using this solution is more accurate with the description:

Download the command line executable sfk.exe at

Use it like this

skf.exe list -big

Example output (abbreviated):

[listing 50 of 78 files by size:]
3951 mens\noname_30.mht
3996 mens\noname_14.mht
3996 mens\noname_25.mht
4060 mens\noname_24.mht
4263 mens\noname_31.mht
4701 mens\noname_1.mht
14568 Thumbnail Restore.zip
45056 netmeter.exe
12337752 rktools.exe
16826024 sp35378.exe
16926496 jre-6u30-windows-i586.exe
19480227 SugarCE-6.2.4.zip
21073936 vlc-1.1.11-win32.exe
22083184 EasyPHP-
25517642 MPSOFTWARE.phpDesigner.v8.0.0.145-CRD.rar
31085033 phpdesigner8usb.zip
48835640 netbeans 7.exe
58900704 ZendServer-CE-php-5.2.17-5.6.0-Windows_x86.exe
491538432 53400105.iso

If you only want the top 10 bigger files, use:

skf.exe list -big=10

You can customize it further following instructions from:
Guest [Entry]

"I second jitbit answer:
open the location (a disk, or a folder) where you want to look for large files in Windows Explorer
in the top-right search box type ""size:gigantic"" (the box will auto-suggest the syntax and other possible options)
(When you type ""size:"", you will get other options as well.)"