SET /a s=50+1
ping -n %s% 127.1>nul
START "" notepad
PAUSE
@ECHO OFF&SETLOCAL ENABLEDELAYEDEXPANSIONSET /a s=50+1
FOR /l %%i in (1,1,!s!) do (
SET /a s-=1
ping -n 2 127.1>nul
title 倒计时开始 !s!)
START "" notepad
PAUSE
@echo offtitle Time & color 02 & mode con: COLS=25 LINES=4
set s=0
set m=0
set h=0
:check
cls
echo.
echo. %h%:%m%:%s%
echo.
choice /t 1 /d y /n >nul
set /a s=s+1
if %s%==60 (set /a m=m+1 & set s=0)
if %m%==60 (set /a h=h+1 & set m=0)
goto check
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)