mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-29 11:24:27 +01:00
Updated set-timer.ps1
This commit is contained in:
parent
94106839fd
commit
9f027b60c5
@ -11,8 +11,10 @@ try {
|
|||||||
if ($Seconds -eq 0 ) {
|
if ($Seconds -eq 0 ) {
|
||||||
[int]$Seconds = read-host "Enter number of seconds"
|
[int]$Seconds = read-host "Enter number of seconds"
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = $Seconds; $i -gt 0; $i--) {
|
for ($i = $Seconds; $i -gt 0; $i--) {
|
||||||
write-progress "$i seconds"
|
clear-host
|
||||||
|
write-big "T-$i seconds"
|
||||||
start-sleep -s 1
|
start-sleep -s 1
|
||||||
}
|
}
|
||||||
write-output "OK - $Seconds seconds countdown finished"
|
write-output "OK - $Seconds seconds countdown finished"
|
||||||
|
Loading…
Reference in New Issue
Block a user