diff --git a/RozmiarBloku/RozamiarBloku.ps1 b/RozmiarBloku/RozamiarBloku.ps1 index f7b5076..4af4bf1 100644 --- a/RozmiarBloku/RozamiarBloku.ps1 +++ b/RozmiarBloku/RozamiarBloku.ps1 @@ -53,8 +53,13 @@ $rozszerzenia_lista = [PSCustomObject]@{ $Rozszerzenia.Add($rozszerzenia_lista) $glebokosc_start = $true +$progres = 0 # Rozpoczęcie iterowania po dysku w poszukiwaniu wszystkich plików i folderów Get-ChildItem -LiteralPath $Litera_Dysku -Recurse -Force | ForEach-Object { + $progres++ + if (($progres % 50000) -eq 0) { + Write-host "Przeprocesowano $progres obiektów" + } # Jeżeli znaleziono folder if ($_.PSIsContainer -eq $true) { # Zwiększenie licznika folderów @@ -189,6 +194,7 @@ Get-ChildItem -LiteralPath $Litera_Dysku -Recurse -Force | ForEach-Object { } } } +Write-host "Przeprocesowano $progres obiektów" $enddate = Get-Date Clear-Host ""