modified: RozmiarBloku/RozamiarBloku.ps1
This commit is contained in:
parent
249417a2db
commit
a5dd90bdcf
@ -53,8 +53,13 @@ $rozszerzenia_lista = [PSCustomObject]@{
|
|||||||
$Rozszerzenia.Add($rozszerzenia_lista)
|
$Rozszerzenia.Add($rozszerzenia_lista)
|
||||||
$glebokosc_start = $true
|
$glebokosc_start = $true
|
||||||
|
|
||||||
|
$progres = 0
|
||||||
# Rozpoczęcie iterowania po dysku w poszukiwaniu wszystkich plików i folderów
|
# Rozpoczęcie iterowania po dysku w poszukiwaniu wszystkich plików i folderów
|
||||||
Get-ChildItem -LiteralPath $Litera_Dysku -Recurse -Force | ForEach-Object {
|
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
|
# Jeżeli znaleziono folder
|
||||||
if ($_.PSIsContainer -eq $true) {
|
if ($_.PSIsContainer -eq $true) {
|
||||||
# Zwiększenie licznika folderów
|
# 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
|
$enddate = Get-Date
|
||||||
Clear-Host
|
Clear-Host
|
||||||
""
|
""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user