Guest User

Windows

a guest
Oct 27th, 2025
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Get-ChildItem | ForEach-Object {
  2. $size = (Get-ChildItem $_.FullName -Recurse -ErrorAction SilentlyContinue |
  3. Measure-Object -Property Length -Sum).Sum
  4. $sizeMB = [math]::Round($size / 1MB, 2)
  5. "$($sizeMB) MB`t$($_.Name)"
  6. } | Sort-Object { [double]($_ -split '\s+')[0] } -Descending |
  7. Out-File "artist_list.txt"
  8.  
Advertisement
Add Comment
Please, Sign In to add comment