PowerShell/scripts/write-progress-bar.ps1
2025-03-27 08:32:38 +01:00

8 lines
295 B
PowerShell
Executable File

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