From cc480b7e08219fd4bcad2e6385cfe1c6c6588db8 Mon Sep 17 00:00:00 2001 From: Gabe Date: Sat, 9 Aug 2025 16:37:59 +0000 Subject: [PATCH] Upload files to "Fun-Random" --- Fun-Random/Fun Progress Bar.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Fun-Random/Fun Progress Bar.ps1 diff --git a/Fun-Random/Fun Progress Bar.ps1 b/Fun-Random/Fun Progress Bar.ps1 new file mode 100644 index 0000000..208a9a0 --- /dev/null +++ b/Fun-Random/Fun Progress Bar.ps1 @@ -0,0 +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 +} + +Write-Progress -Activity "Processing..." -Status "Completed!" -PercentComplete 100 -Completed \ No newline at end of file