1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-05-03 23:24:45 +02:00
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)