- @echo off&title 秒表
- ::code 随风 @bbs.bathome.cn 2008-05-02
- if "%~1"=="" color 4a&mode con cols=35 lines=4
- set cls=
- for /l %%i in (1,1,100) do call,set cls=%%cls%%
- :list
- if "%~1"=="loop" cls&echo 按任意键暂停&goto loop
- subst z: "%cd%"
- start /b %~s0 loop
- pause>nul
- subst z: /d
- pause>nul
- goto list
- :loop
- if not exist z: (
- cls&echo 按任意键重新开始
- set /p= %aa:~-2%:%ab:~-2%:%ac:~-2%.%ad:~-2%<nul
- exit
- )
- set /a d="(d+1)%%100,c=(c+!d)%%60,b+=!(c+d),a+=!(b+c+d)"
- for %%a in (a b c d) do call set a%%a=0%%%%a%%
- set /p= %aa:~-2%:%ab:~-2%:%ac:~-2%.%ad:~-2%<nul
- set /p=%cls%<nul
- goto loop
复制代码
|