Do-Progress is a visual loading bar for Windows Powershell
Usage
-
Clone this repository
-
Import the Module or paste the Do-Progress function into your code
Import-Module Do-Progress
- Usage
Do-Progress $completed $total $started
$started is optional.
- Example usage
$total = 10000
$count = 0
$started = 0
while ($count -ne $total) {
$count++
if ($started -lt $total) {
$started += 2
if ($started -gt $total) {
$started = $total
}
}
Do-Progress $count $total $started
}
NoClutter Mode
The -NoClutter mode can be used to have a loading bar with no stats. This mode has been made 100x more efficient, and will significantly speed up large jobs.
Do-Progress $completed $total -NoClutter