1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial how to make stopwatch using cmd and notepad

Discussion in 'Coding, Programming' started by connectibyte, May 28, 2015.

  1. steps:
    1.)open notepad
    2.)type this code

    Countdown:
    echoecho off
    title Timer
    set time=30 (you can make the time whatever you want)
    :loop
    set /a time=%time%-1
    if %time%==0 goto timesup
    echo %time%
    ping localhost -n 2 > nul
    goto loop
    :timesup
    echo Time is Up!
    echo Press Any Key To Exit!
    pause >nul
    exit
    3.)save it as "kahit anong gudtong name.bat" e.g timer.bat
    irun :)
     
    Odlanyer22 likes this.
  2. palitan yung ? ng @ yung code na nasa umpisa na ?echo off
     
    darkbit likes this.
Tags / Keywords: