Skip to content

Instantly share code, notes, and snippets.

@RustyNails8
Created February 10, 2023 05:21
Show Gist options
  • Save RustyNails8/7b5ab61a274310e44363312746f928e0 to your computer and use it in GitHub Desktop.
Save RustyNails8/7b5ab61a274310e44363312746f928e0 to your computer and use it in GitHub Desktop.
Countdown in powershell
for ($seconds=10; $seconds -gt -1; $seconds--) {
Write-Host -NoNewLine ("`rseconds remaining: " + ("{0:d4}" -f $seconds))
Start-Sleep -Seconds 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment