Checking Size of Downloads-Folder

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell


Whenever you download something with IE, by default the files get stored in your personal download folder. Often, over time a lot of garbage can accumulate. This line tells you just how much data you store in this folder:

$folder = "$env:userprofile\Downloads"
Get-ChildItem -Path $folder -Recurse -Force -ea 0 |
  Measure-Object -Property Length -Sum |
  ForEach-Object {
    $sum = $_.Sum / 1MB
    "Your Downloads folder wastes {0:#,##0.0} MB storage" -f $sum


You may be surprised just how much stuff has been collected there.

Twitter This Tip! ReTweet this Tip!

Posted Jun 05 2012, 06:00 AM by ps1
Copyright 2012 All rights reserved.