Tuesday, 7 January 2014

Create a countdown timer app of your own!




Go to notepad and copy and paste the following code:
@echo off
:Start
title timer
color EC
echo Type in an amount of time (Seconds)
set /p time=

color CE
:loop
cls
ping localhost -n 2 >nul
set /a time=%time%-1
echo %time%
if %time% EQU 0 goto Timesup
goto loop

:Timesup
title Time Is Up!

ping localhost -n 2 >nul

ping localhost -n 2 >nul
cls
echo The Time is up!
pause
cls
echo Thank you for using this software.
pause
goto Exit

:Exit
Exit
goto

Noe save this as - anything.bat and run the program!




0 comments:

Post a Comment