以下是小弟的一个不是很完美的时钟,忘友友们能够更好的改善!
@echo off
color 0a&title 数字时钟 by gdyabc [Version 0.0.1]
mode con:cols=45 lines=2
:loop
set a=%time:~0,2%
set b=%time:~3,2%
set c=%time:~6,2%
ping -n 2 127.0.0.1>nul&cls
echo 现在是: %date% %a% 时 %b% 分 %c% 秒
goto loop
@echo off
color 0a&title 数字时钟 by gdyabc [Version 0.0.1]
mode con:cols=45 lines=2
:loop
set a=%time:~0,2%
set b=%time:~3,2%
set c=%time:~6,2%
ping -n 2 127.0.0.1>nul&cls
echo 现在是: %date% %a% 时 %b% 分 %c% 秒
goto loop
echo @echo off>TEST.bat


