Files
Powershell-Scripts/Fun-Random/Fun Progress Bar.ps1
T

10 lines
348 B
PowerShell
Raw Normal View History

2025-08-09 16:37:59 +00:00
$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