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