How to find the Top 5 largest files in Windows ?

I learnt something with the PowerShell today when searching for a largest file on my Windows 7 PC 🙂

If you are one of the users who want to find 5 largest file in Windows 7, you could use the below code in PowerShell…

How to find the Top 5 largest files in Windows ?

You can launch PowerShell from Start -> Accessories -> Windows PowerShell folder.

gci -r D:\ -ea 0 | sort Length -desc | select -f 5

The above example will search for the files in D: drive sort it in descending order based on the length and display the first 5 file names … The result is that the top 5 largest files in D: drive is shown …

How to find the Top 5 largest files in Windows 7 ?
How to find the Top 5 largest files in Windows 7 ?

gci is PowerShell’s Get-Childitem which is similar to DIR command in “DOS”…

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...