Update Fun\Random/Fun Progress Bar.ps1

This commit is contained in:
2025-08-09 16:38:30 +00:00
parent cc480b7e08
commit 595fb27a47
@@ -1,10 +1,10 @@
$i = 0
$total = 100
while ($i -lt $total) {
Write-Progress -Activity "Processing..." -Status "Progress: $($i / $total * 100)%" -PercentComplete ($i / $total * 100)
$i++
Start-Sleep -Milliseconds 100 # Simulate work being done
}
$i = 0
$total = 100
while ($i -lt $total) {
Write-Progress -Activity "Processing..." -Status "Progress: $($i / $total * 100)%" -PercentComplete ($i / $total * 100)
$i++
Start-Sleep -Milliseconds 100 # Simulate work being done
}
Write-Progress -Activity "Processing..." -Status "Completed!" -PercentComplete 100 -Completed