Get IT Solutions

How to do IT
Menu
  • Home
  • SCCM 2012
    • Deploy Packages
    • Troubleshooting errors SCCM 2012
  • Windows
    • Applications Silent Install
    • Windows Tools
    • Windows Error
    • Script
    • Exchange Server
    • Troubleshooting Office
    • Applications Errors
  • Database
    • SQL Server
    • MySQL
    • Oracle
  • Cybersecurity
  • Other
  • Reviews

How to Find Large Files on Windows 7 & 10 – CMD Forfiles Command

If the capacity of your hard drive is running low, it is time to clean off some files and to find large files on windows. First of all, we have to identify the biggest “space consumers” and there are a couple of ways to do this. The methods below work for all windows versions including windows 10.

Three methods to find large files on windows

Method 1: Using Windows Explorer

You can use windows search to find big files on your computer.  To ensure that all files will display, first unhide hidden folders.

Step 1: Type “Show hidden” and click on the “Show Hidden Files and Folders” option.

Show Hidden Files and Folders

Show Hidden Files and Folders

Step 2: In the “View” tab of the window that opens, under “Files and Folders,” check “Show hidden files, folders, and drives.” Reverse this process when you’re finished.

Show Hidden Files-Folders-Drives

Show Hidden Files-Folders-Drives

Step 3:

  • Press Win+F to bring forth the Windows Search window.
  • Click the mouse in the Search text box in the upper-right corner of the window.
  • Type size:gigantic

 

Find Large Files Windows

Find Large Files Windows

Select a size range. Click the option that best describes the file sizes you’re looking for. Once you make your selection, a list of files will appear.

  • Gigantic will display files larger than 128 MB.
  • Huge will display files larger than 16 MB but smaller than 128 MB.
  • Large will display files larger than 1 MB but smaller than 16 MB.

The search will take some time and show a green progress bar in the address field since it is searching the entire C: drive. In newer versions of Windows, like Windows 10, the size option shows up in the ribbon and not in the search box anymore.

Find Big Files Windows

Find Big Files Windows

Method 2: Using Cmd – forfiles commands

In this method, we will explain how to find big files using command prompt, forfiles command.  Below you have some examples when you need to show files with size 1MB. 100MB, 1GB or more.

 

How to find large files with a size of 1 MB or more:

forfiles /S /M * /C “cmd /c if @fsize GEQ 1048576 echo @path”

Example:

E:\>forfiles /S /M * /C "cmd /c if @fsize GEQ 1048576 echo @path"

"E:\export-GWG01-24032017-22h00.dmp"
"E:\Xming.zip"
"E:\AgentInstaller_Win64\AgentInstall64.msi"
"E:\Dekstop_20200121\extract.csv"
"E:\Dekstop_20200121\SpaceSniffer.exe"

This command prints the complete file path. If you need to print just the file name, you can use @file in place of @path.

 

Command to find files with a size of more than 100MB:

forfiles /S /M * /C "cmd /c if @fsize GEQ 104857600 echo @path"

 

Find files with size 1 GB or more:

forfiles /S /M * /C "cmd /c if @fsize GEQ 1073741824 echo @path"

 

For those wanting top 10 files, redirect output to a text file:

forfiles /S /M * /C “cmd /c if @fsize GEQ 1073741824 echo @path > bigfiles.txt”

The command is going to locate all files larger than 1GB and create a text document titled “bigfiles.txt” with their locations. You can then open in excel and sort or use a text editor to weed out the files you don’t want

READ ALSO -   Best Solutions For Resource Not Owned BSoD Error On Windows 11/10/7

 

Method 3: Find large files on windows using Powershell

The below PowerShell script is prepared from “Hey Scripting Guy” at https://gallery.technet.microsoft.com/scriptcenter.

The script uses two command line parameters: path and first that you can either modify directly or change from the command line. The path parameter specifies the search root, and the first parameter determines how many folders will be returned.

# --------------------------------------------------------- 
# ScriptingGamesBeginnerEvent8_PS1.ps1 
# ed wilson, msft 8/21/2009 
# PS1 version of HSG-08-19-09 http://bit.ly/1d8Rww 
# 
# --------------------------------------------------------- 
Param( 
[string]$path = "c:\fso", 
[int]$first = 5 
)# end param 
# *** Function Here *** 

function Get-DirSize ($path){ 

BEGIN {} 

PROCESS{ 
$size = 0 
$folders = @() 

foreach ($file in (Get-ChildItem $path -Force -ea SilentlyContinue)) { 
if ($file.PSIsContainer) { 
$subfolders = @(Get-DirSize $file.FullName) 
$size += $subfolders[-1].Size 
$folders += $subfolders 
} else { 
$size += $file.Length 
} 
} 

$object = New-Object -TypeName PSObject 
$object | Add-Member -MemberType NoteProperty -Name Folder ` 
-Value (Get-Item $path).FullName 
$object | Add-Member -MemberType NoteProperty -Name Size -Value $size 
$folders += $object 
Write-Output $folders 
} 

END {} 
} # end function Get-DirSize 

Function Get-FormattedNumber($size) 
{ 
IF($size -ge 1GB) 
{ 
"{0:n2}" -f ($size / 1GB) + " GigaBytes" 
} 
ELSEIF($size -ge 1MB) 
{ 
"{0:n2}" -f ($size / 1MB) + " MegaBytes" 
} 
ELSE 
{ 
"{0:n2}" -f ($size / 1KB) + " KiloBytes" 
} 
} #end function Get-FormattedNumber 

# *** Entry Point to Script *** 

if(-not(Test-Path -Path $path)) 
{ 
Write-Host -ForegroundColor red "Unable to locate $path" 
Help $MyInvocation.InvocationName -full 
exit 
} 
Get-DirSize -path $path | 
Sort-Object -Property size -Descending | 
Select-Object -Property folder, size -First $first | 
Format-Table -Property Folder, 
@{ Label="Size of Folder" ; Expression = {Get-FormattedNumber($_.size)} }

 

Method 4: Find Big Files Windows using a third-party program

You can find big files on Windows using a third-party program such as Space Sniffer. Space Sniffer can show you the biggest files and folders. You can download it here http://www.uderzo.it/main_products/space_sniffer/

SpaceSniffer is a freeware and portable tool application. It lets you understand how folders and files are structured on your disks.

  • Double click and run SpaceSniffer.exe as an administrator to have an access to all folders and files.
  • Choose your space by clicking on one of the drives and click Start:
Choose Your Space

Choose Your Space

  • SpaceSniffer will start to scan and by using a Treemap visualization layout, you have an immediate perception of where big folders and files are placed on your devices.
Full Scan

Full Scan

  • If you need a larger view of a small folder then double click on it, and it’ll zoom to the full extent of the view.

One of the largest consumers of disc space on Windows Clients are all the outdated and redundant files installed in the Component Store are stored in the WinSxS directory.  You can read more about how to delete windows update files in our previous article

In the above discussion, there are two methods on how to find big files on windows. Comment below if you have any other solution.

Share
Tweet
Google+
Pinterest
Linkedin
Stumble
Email
Prev Article
Next Article

Related Articles

File Explorer Not Responding on Windows 11 10 7
The File Explorer or Windows Explorer is the best built-in …

File Explorer Not Responding on Windows 11/10/7? Try These 11 Fixes!

If your PC has an Intel wireless adapter, you might …

Intel Wi-Fi 6 AX201 Not Working In Windows 10/11? Try These 10 Quick Solutions!

Best Computers & Laptops

Best Computer for Cyber Security – Laptop and Desktop
Best Computer for Cyber Security
Hey, are you seeking the best computer for cyber security? Well, we must say you have come to the right place to find your answer and guidance. There are a plethora of products out there for you to pick from ...
Read More
Best Computer for Microsoft Office & Excel – Laptop and Desktop
Best Computer for Microsoft Office & Excel
Are you finding the Best Computer for Microsoft Office and Excel? In modern days, the best laptop or desktop set is the one which is both portable, has good looks and offers the smoothest performance. Microsoft Office is a package ...
Read More
Best Computer for Hacking – Laptop and Desktop Selection
Best computer for Hacking
When it comes to hacking, either laptop or desktop, choosing the best computer for hacking would be an exhilarating job. There are many specifications to be considered for hacking ...
Read More

SQL Server Tips

FIX sqlstate 42000 – mysql error 1064 – you have an error in your sql syntax
Sqlstate 42000 Is a general code that come together with other number. Most often comes with the code 1064 and ...
Read More
The execute permission was denied on the object – SQL Server Error
The execute permission was denied on the object
The following article will handle “the execute permission was denied on the object” error appears on SQL Server. This error ...
Read More
How to Read Data from LDF file in SQL Server – A Complete Guide
Read LDF File
Hello Everyone, Today we are going to address the most popular query of SQL users, how to read data from ...
Read More

Search

We are on:

Get FREE SPACE for your PC

3 Method to Delete Temp Files in Windows 7/10 including vbs script

In this post we will explain how to delete temp files windows 7 using three different methods including vbs script ...
Read More

Fastest way to delete hiberfil sys from windows 10/8/7 and XP – CMD

In this article we will explain how to remove or delete hiberfil sys from Windows 10/8/7 and XP . If you does ...
Read More

Learn How to Silent Install Applications

Silent Install Adobe Flash Player
In this tutorial will explain how to silent install adobe flash player 25, Msi and Exe version. How to disable auto update and uninstall older ...
Read More
Java Silent Install and Uninstall Older Version – Deploy Package MSI
This tutorial will explain how to silent install Java MSI/EXE version and disable auto-update. The command line will also uninstall the ...
Read More
Silent Install Adobe Shockwave Player 12 and disable update
In this tutorial will explain how to silent install Adobe Shockwave Player 12 msi and disable auto update. The command will uninstall older ...
Read More
Silent Install Google Chrome MSI, Silent Uninstall and Disable Auto Update
This tutorial will explain how to silent install Google Chrome MSI and disable auto update. The command will uninstall older version of ...
Read More
Silent Install Adobe Reader 11 and DC – msi and exe – disable update
In this tutorial will explain how to silent install Adobe Reader version 11 and DC. We will user both version "msi" ...
Read More
Silent Install Mozilla Firefox msi and exe file – Including Silent Uninstallation
This tutorial will explain how to silent install Mozilla Firefox. We will use MSI and EXE files to perform a silent ...
Read More
Skype Silent Install Msi and disable updates
In this tutorial will explain how to silent install skype  and disable auto update. The command will uninstall older version of Skype and ...
Read More
Filezilla Silent Install msi and exe version
Filezilla silent install tutorial will explain how to perform a silent installation of application. We will explain methods, silent install ...
Read More
Silent install VLC Media Player
In this tutorial will explain how to silent install VLC Media Player. We will explain both methods for exe and ...
Read More
Notepad++ silent install exe and msi version – Command Line
Notepad++ silent install is the new article from a series of silent installations. Notepad++ as free software has two main ...
Read More

Batch File Solutions

How to list files in cmd – Command Prompt – Windows 10
Whenever you want to search and make a list of all files on a specific folder, you used the windows ...
Read More
Batch rename multiple files in folder – CMD script – Bulk Method – Win 10
The following article will teach how to rename multiple files in a folder with the bulk method using Command Line ...
Read More
Batch script rename file using Command Line (CMD) & PowerShell – Windows 10
The following article will use the “rename” or “ren” command to rename the file using a command prompt. Also, we ...
Read More
Change extension of multiple files at once – CMD batch file
The following article will teach the methods to change the extension of multiple files at once using command prompt and ...
Read More
How to delete registry key with command line | PowerShell | Batch
The following article is the third of series about registry and working on it through command line (CMD) and PowerShell ...
Read More
How to add registry key & values with CMD | PowerShell | Batch
The registry is the place where most of the applications store the settings but not only. Used also from the ...
Read More
Unmap Network Drive CMD – (Batch file) – net use delete command
After we posted the methods to map network drive using cmd commands we come this time with the method to ...
Read More
Map Network Drive cmd (batch file) – net use user password
This article will focus on another way to map a network drive on your computer instead of from the explorer ...
Read More
How to Find Large Files on Windows 7 & 10 – CMD Forfiles Command
If the capacity of your hard drive is running low, it is time to clean off some files and to ...
Read More
CMD Script to check disk space on windows and multiple remote servers
The following article will provide you script to check disk space. The Script monitor space on windows and multiple remote ...
Read More

Get IT Solutions

How to do IT

About Us

Get IT Solutions is a personal blog, which is managed to guide people for various topic.

Second Menu

  • Donate
  • About Us
  • Contact Us
  • Privacy Policy

What Will You Find

Automation is our area of writing where are included scripts, batch and various tips to automate your daily job.
Copyright © 2025 Get IT Solutions