- @echo off&setlocal enabledelayedexpansion
- mode con cols=113 lines=20 &color 9f
- set "bar=■■■■■■■■■■"
-
- for /l %%i in (600,-1,0) do (
- if %%i neq 600 (set/a "num=%%i%%60")
- if defined num if !num! equ 0 set bar=!bar:~,-1!
- cls
- echo After %%i seconds ,start thunder
- echo;!bar!
- ping /n 2 127.1 >nul
- )
- pause
复制代码
|