Update Fun\Random/Fun Progress Bar.ps1
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
$i = 0
|
$i = 0
|
||||||
$total = 100
|
$total = 100
|
||||||
|
|
||||||
while ($i -lt $total) {
|
while ($i -lt $total) {
|
||||||
Write-Progress -Activity "Processing..." -Status "Progress: $($i / $total * 100)%" -PercentComplete ($i / $total * 100)
|
Write-Progress -Activity "Processing..." -Status "Progress: $($i / $total * 100)%" -PercentComplete ($i / $total * 100)
|
||||||
$i++
|
$i++
|
||||||
Start-Sleep -Milliseconds 100 # Simulate work being done
|
Start-Sleep -Milliseconds 100 # Simulate work being done
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Progress -Activity "Processing..." -Status "Completed!" -PercentComplete 100 -Completed
|
Write-Progress -Activity "Processing..." -Status "Completed!" -PercentComplete 100 -Completed
|
||||||
Reference in New Issue
Block a user