• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Batch countdown timer.

Assaultz

Member
Got bored and whenever I'm bored I'll make batch stuff it's one of my favorite languages. I made a countdown timer that takes the inputted time and counts down in 1 second intervals. Then it plays a neat little noise :P

CODE:

[HIDE]
@echo off
title Timer by Assaultz.
echo Enter amount of time to countdown from.
set /p input=C:\
SET timer=%input%
cls
:countdown
set /a timer-=1
echo %timer%
if %timer%==0 goto end
ping 192.0.2.2 -n 1 -w 1000 > nul
goto countdown
:end
cls
echo The timer is up. It took %input% seconds!
echo set speech = Wscript.CreateObject("SAPI.spVoice") >> "temp.vbs"
set text=Timer done.
echo speech.speak "%text%" >> "temp.vbs"
start temp.vbs
pause
del temp.vbs
[/HIDE]

Enjoy the timer :P
 
Got bored and whenever I'm bored I'll make batch stuff it's one of my favorite languages. I made a countdown timer that takes the inputted time and counts down in 1 second intervals. Then it plays a neat little noise :p

CODE:

***Hidden content cannot be quoted.***

Enjoy the timer :p
i will try it
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: soc88vietnamco is our newest member. Welcome!
      Back
      Top