Skip to content

Instantly share code, notes, and snippets.

@daniele-quero
Last active September 23, 2023 13:28
Show Gist options
  • Save daniele-quero/9dac8a74fc008a0ca942c5c78d54965e to your computer and use it in GitHub Desktop.
Save daniele-quero/9dac8a74fc008a0ca942c5c78d54965e to your computer and use it in GitHub Desktop.
foreach ($l in $lines) {
#Doing Actual Stuff
$cur = $($($lines.IndexOf($l) + 1) / $lines.Length)
$perc = $cur.tostring("P")
Write-Progress -Activity 'Updating' -Status "$perc Complete:" -PercentComplete $cur
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment