Advertisement
Combreal

loadingBar.ps1

Jun 25th, 2024
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $itemNumber = 8
  2. ForEach ($Item in (1..$itemNumber)) {
  3.     Write-Progress -PercentComplete ($Item/$itemNumber*100) -Status "Récupération des données" -Activity "Information $item sur $itemNumber"
  4.     #process
  5.     Start-Sleep -Milliseconds 200
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement