Files
PowerShell/docs/write-progress-bar.md
Markus Fleschutz d8690419ea Updated the manuals
2025-06-22 10:38:33 +02:00

731 B

The write-progress-bar.ps1 Script

write-progress-bar.ps1

Parameters



[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

Script Content

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

(page generated by convert-ps2md.ps1 as of 06/22/2025 10:37:42)