Auto-commit: 2025-10-31 08:58:35
This commit is contained in:
13
Tools/PS2EXE-GUI/Examples/Progress.ps1
Normal file
13
Tools/PS2EXE-GUI/Examples/Progress.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# demo program for Write-Progress
|
||||
|
||||
1..10 | % { Write-Progress -Activity "Activity $_" -Status "State $_" -Id 1 -CurrentOperation "Operation $_" -PercentComplete ([int]10*$_) -SecondsRemaining (10-$_) ;
|
||||
Start-Sleep 1 }
|
||||
|
||||
Start-Sleep 3
|
||||
Write-Progress -Activity "Activity" -Status "State" -Id 1 -Completed
|
||||
Write-Host "Completed"
|
||||
Start-Sleep 1
|
||||
|
||||
Write-Progress -Activity "New progress" -Status "New state" -PercentComplete 33 -SecondsRemaining 734
|
||||
Start-Sleep 3
|
||||
Write-Output "Exiting program"
|
||||
Reference in New Issue
Block a user