Batch File Timer

Introduction: Batch File Timer

About: Returning to Instructables.com To show off my new batch game in the works Called Asteroid Belt! - Raven

How to Make a timer with notepad:

With easy steps...

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: How to Create Timer

Type this

@echo off
mode 32,10

title Timer

:start
title Enter time to countdown from.

cls
echo Enter time to countdown from.

set/p "time=>
set time=%time%

:loop
cls

set /a time=%time%-1
if %time%==0 goto timesup

title Counting down...

echo.
echo.

echo.
echo Countdown - [%time%]

ping localhost -n 2 > nul
goto loop

:timesup
echo Time is Up!!

pause
goto start

Step 2: How to Save and Run Timer

Save as Timer.bat

to run double click on it

Be the First to Share

    Recommendations

    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020
    • First Time Author Contest

      First Time Author Contest

    Discussions