mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-29 21:24:45 +02:00
Added write-progress-bar.ps1
This commit is contained in:
parent
6c02b5719d
commit
0fecf9ce78
8
scripts/write-progress-bar.ps1
Normal file
8
scripts/write-progress-bar.ps1
Normal file
@ -0,0 +1,8 @@
|
||||
$progressBar = @('⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷')
|
||||
$progressIndex = 0
|
||||
|
||||
do {
|
||||
Write-Host "`r$($progressBar[$progressIndex]) Working on something..." -NoNewline
|
||||
$progressIndex = ($progressIndex + 1) % $progressBar.Length
|
||||
Start-Sleep -milliseconds 100
|
||||
} while ($true)
|
Loading…
Reference in New Issue
Block a user