PowerTip: Use PowerShell and Graphical Tool to View Files

Doctor Scripto

Summary: Use Windows PowerShell and a graphical tool to view large files.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily see what files in a folder are the largest so I can clean up my file system?

 Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet to return the contents of a folder, select the name and length of the files, then
            pipe the results to the Out-GridView cmdlet for easy viewing. This example uses a folder named C:\fso:

Get-ChildItem c:\fso | Select name, length | Out-GridView 


0 comments

Discussion is closed.

Feedback usabilla icon