Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell and Graphical Tool to View Files

$
0
0

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 



Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>