@ECHO off
setlocal enabledelayedexpansion
TITLE 经典的批处理时钟.bat
:1
MODE con: COLS=35 LINES=5
for %%i in (4 3 5 6 1 9 3 4 2 1 4 7 6 5) do (
for %%j in (f a e c b c a b e f b d) do (
if %%i neq %%j (
set tm1=!time:~0,2!
set tm2=!time:~3,2!
set tm3=!time:~6,2!
ECHO ==============================
ECHO %date% !tm1!点!tm2!分!tm3!秒
ECHO ==============================
ECHO =========北=京=时=间==========
ping -n 2 127.1>nul
color %%i%%j)))
goto 1
[ Last edited by namejm on 2007-2-2 at 04:29 PM ]作者: gaomushan 时间: 2007-1-30 04:20 我是楼主。看过的最好发一下看法,我在XP上完美极了。
本人QQ:50546238 ☆㊣ぐ悍狼作者: ccwan 时间: 2007-1-30 04:27 楼主你的这句代码有画蛇之嫌:if %%i neq %%j
在你的代码中,%%i可能等于%%j吗?作者: electronixtar 时间: 2007-1-30 04:38 特地来瞻仰下传说中的经典作者: qzwqzw 时间: 2007-1-30 05:14 有点不知所谓