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

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…

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”…

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

No Responses

Leave a Reply


x

Interesting BlogPosts to read

Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...
Popular cross-platform (android and iOS) to-do list app
In this blog post, we will cover some of the popular to-do list app that is available on different p...