@echo off & setlocal EnableDelayedExpansion
echo ^@echo off ^& color 4e ^& mode con cols=15 lines=3 ^& title 喂...... >"%tmp%\clock.bat"
echo ^:000>>"%tmp%\clock.bat"
echo echo. ^& echo ^& echo 时间到 ^& ping 127.0.0.1 -n 2 ^>^>nul ^& goto 000 >>"%tmp%\clock.bat"
mode con cols=42 lines=13
set alarm=%1
title 正在读取. . .
set verson= 1.0 Beta
echo.
echo ╔═════════════════╗
echo ║大字时钟 %verson%║
echo ╠═════════════════╣
echo ║┌┈┐ ┌┈┐ ┌┈┐ ┌┈┐║
echo ║┊ ┊ ┊ ┊ ▓ ┊ ┊ ┊ ┊║
echo ║├┈┤ ├┈┤ 00 ├┈┤ ├┈┤║
echo ║┊ ┊ ┊ ┊ ▓ ┊ ┊ ┊ ┊║
echo ║└┈┘ └┈┘ └┈┘ └┈┘║
echo ╠═════════════════╣
if '%alarm%' == '' echo ║闹钟功能 已经关闭║
if not '%alarm%' == '' echo ║闹钟功能 %alarm%║
echo ╚═════════════════╝
:for
color 3e
for /l %%a in (0,1,3) do call :cs %%a
goto show
:cs
for /f "tokens=1,2,3 delims=:." %%b in ('echo %time%') do set times=%%b%%c%%d >>nul
for /f "tokens=1,2,3,4 delims=-/ " %%e in ('echo %date%') do set datesh=%%e 年 %%f 月 %%g 日 %%h & set dates=%%e%%f%%g>>nul
for /f "tokens=1,2 delims=:." %%i in ('echo %alarm%') do set alarms=%%i%%j00 >>nul
if "%times%" == "%alarms%" call :alarm %1
call :num%%times:~^%1,1%% %1
goto :eof
:num1
set 1_%1=┌┈▓
set 2_%1=┊ ▓
set 3_%1=├┈▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num2
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=▓▓▓
set 4_%1=▓ ┊
set 5_%1=▓▓▓
goto :eof
:num3
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num4
set 1_%1=▓┈▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num5
set 1_%1=▓▓▓
set 2_%1=▓ ┊
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num6
set 1_%1=▓▓▓
set 2_%1=▓ ┊
set 3_%1=▓▓▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:num7
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=├┈▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num8
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:num9
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num0
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓┈▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:show
ping 127.0.0.1 -n 2 >>nul
cls
title %datesh%
echo.
echo ╔═════════════════╗
echo ║大字时钟 %verson%║
echo ╠═════════════════╣
echo ║!1_0! !1_1! !1_2! !1_3!║
echo ║!2_0! !2_1! ▓ !2_2! !2_3!║
echo ║!3_0! !3_1! %time:~6,2% !3_2! !3_3!║
echo ║!4_0! !4_1! ▓ !4_2! !4_3!║
echo ║!5_0! !5_1! !5_2! !5_3!║
echo ╠═════════════════╣
if '%alarm%' == '' echo ║闹钟功能 已经关闭║
if not '%alarm%' == '' echo ║闹钟功能 %alarm%║
echo ╚═════════════════╝
goto for
:alarm
if not '%1' == '0' goto :eof
start %tmp%\clock.bat
set alarm=
goto :eof
|
来个经典的大字闹钟
最新推荐文章于 2022-02-25 21:57:21 发布