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
}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.
0 comments:
Post a Comment