PowerShell/scripts/write-progress-bar.ps1
2025-02-19 09:09:53 +01:00

8 lines
295 B
PowerShell

$progressBar = @('⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷')
$progressIndex = 0
do {
Write-Host "`r$($progressBar[$progressIndex]) Working on something..." -NoNewline
$progressIndex = ($progressIndex + 1) % $progressBar.Length
Start-Sleep -milliseconds 100
} while ($true)