I have this fun countdown project.
I need to have it displayed in the title in the following format: HH:MM:SS
The following code is as needed. Only the output has to be modified.
The best solution will be to come up with a math code to change the !CountDown! var back to hh:mm:ss
CALL :CountDown 01:02:10
FOR /F "tokens=1-3 delims=:" %%A in ("%~1") DO SET /a WaitVal=(%%~A*3600)+(%%~B*60)+(%%~C)
FOR /L %%A in (1,1,%WaitVal%) DO (
nircmd wait 1000
SET /a CountDown-=1
TITLE COUNTDOWN UNTIL [!CountDown!]