is it posible to have a visible Count down in a batch file
what i mean is this:
this window closes in 5 seconds, and it Counts down visible
Posted 03 December 2004 - 02:57 AM
Posted 03 December 2004 - 04:46 AM
Posted 03 December 2004 - 11:40 AM
sixpack, on Dec 3 2004, 03:57 AM, said:
@echo off echo this window closes in 5 seconds echo. echo 5 ping -n 2 127.0.0.1>nul echo 4 ping -n 2 127.0.0.1>nul echo 3 ping -n 2 127.0.0.1>nul echo 2 ping -n 2 127.0.0.1>nul echo 1 ping -n 2 127.0.0.1>nul pause
Posted 03 December 2004 - 12:17 PM
jdoe, on Dec 3 2004, 06:40 PM, said:
sixpack, on Dec 3 2004, 03:57 AM, said:
@echo off echo this window closes in 5 seconds echo. echo 5 ping -n 2 127.0.0.1>nul echo 4 ping -n 2 127.0.0.1>nul echo 3 ping -n 2 127.0.0.1>nul echo 2 ping -n 2 127.0.0.1>nul echo 1 ping -n 2 127.0.0.1>nul pause
Posted 14 December 2004 - 02:50 AM
echo off cls && mode con: Cols=55 Lines=5 && Color 9f && TITLE COUNTDOWN > Rest1.vbs Echo Wscript.sleep 875 && SET R1=Start /w Rest1.vbs CLS ECHO. && Echo .5 && ECHO COUNTDOWN 5 >> Test.txt && %R1% && CLS && ECHO. && Echo ..4 && ECHO COUNTDOWN 4 >> Test.txt && %R1% && CLS ECHO. && Echo ...3 && ECHO COUNTDOWN 3 >> Test.txt && %R1% && CLS && ECHO. && ECHO ....2 && ECHO COUNTDOWN 2 >> Test.txt && %R1% CLS && ECHO. && ECHO .....1 && ECHO COUNTDOWN 1 >> Test.txt && %R1% && CLS && COLOR F2 ECHO. && ECHO CONTINUE >> Test.txt SET /P = CONTINUE DEL REST1.VBS && Test.txt DEL Test.txt
Posted 14 December 2004 - 01:44 PM
gunsmokingman, on Dec 14 2004, 09:50 AM, said:
echo off cls && mode con: Cols=55 Lines=5 && Color 9f && TITLE COUNTDOWN > Rest1.vbs Echo Wscript.sleep 875 && SET R1=Start /w Rest1.vbs CLS ECHO. && Echo .5 && ECHO COUNTDOWN 5 >> Test.txt && %R1% && CLS && ECHO. && Echo ..4 && ECHO COUNTDOWN 4 >> Test.txt && %R1% && CLS ECHO. && Echo ...3 && ECHO COUNTDOWN 3 >> Test.txt && %R1% && CLS && ECHO. && ECHO ....2 && ECHO COUNTDOWN 2 >> Test.txt && %R1% CLS && ECHO. && ECHO .....1 && ECHO COUNTDOWN 1 >> Test.txt && %R1% && CLS && COLOR F2 ECHO. && ECHO CONTINUE >> Test.txt SET /P = CONTINUE DEL REST1.VBS && Test.txt DEL Test.txt
Posted 13 January 2013 - 05:06 AM
G7 NANOSCRIPTZ - ZIP.zip (35.57K)
This post has been edited by DataCracker7899: 13 January 2013 - 05:08 AM
Posted 13 January 2013 - 08:10 AM
Posted 13 January 2013 - 10:26 AM
@MODE CON: COLS=32 LINES=1
@COLOR E5
@TITLE Countdown
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /F %%# IN ('COPY /Z "%~dpf0" NUL') DO SET "CR=%%#"
FOR /L %%# IN (10,-1,1) DO (SET/P "=Script will end in %%# seconds. !CR!"<NUL:
PING -n 2 127.0.0.1 >NUL:)
The first three lines are pointless additions which can be removed, change the 10 in the second 'FOR loop' to the number of seconds you wish to count down from.
Posted 13 January 2013 - 01:18 PM
Quote
Parameter List:
/T timeout Specifies the number of seconds to wait.
Valid range is -1 to 99999 seconds.
/NOBREAK Ignore key presses and wait specified time.
/? Displays this help message.
NOTE: A timeout value of -1 means to wait indefinitely for a key press.
Examples:
TIMEOUT /?
TIMEOUT /T 10
TIMEOUT /T 300 /NOBREAK
TIMEOUT /T -1
Posted 13 January 2013 - 01:39 PM
Posted 02 February 2013 - 06:14 PM
@ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION SET /A numtimes=3 FOR /L %%G in (1,1,%numtimes%) DO ( CALL :WaitDisplay "Please Wait" ) CLS ECHO Done! Press any key to finish... PAUSE > NUL & GOTO :EOF :WaitDisplay SET string=%1 SET string=%string:"=% SET dots=... FOR /l %%G in (1,1,3) DO ( CLS ECHO !string!!dots:~0,%%G! PING localhost -n 2 -w 500 -l 5000 > NUL )