diff --git a/Fun-Random/Fun Progress Bar.ps1 "b/Fun\\Random/Fun Progress Bar.ps1" similarity index 97% rename from Fun-Random/Fun Progress Bar.ps1 rename to "Fun\\Random/Fun Progress Bar.ps1" index 208a9a0..a59d1a7 100644 --- a/Fun-Random/Fun Progress Bar.ps1 +++ "b/Fun\\Random/Fun Progress Bar.ps1" @@ -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 \ No newline at end of file