10 lines
348 B
PowerShell
10 lines
348 B
PowerShell
|
|
$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
|