版本一:
@echo off
setlocal enabledelayedexpansion
set str=0123456789abcdef
for /l %%i in (0,1,15) do (
for /l %%j in (0,1,15) do (
if %%i neq %%j (
cls
echo 当前颜色代码是:color !str:~%%i,1!!str:~%%j,1!
color !str:~%%i,1!!str:~%%j,1!
pause
)
)
)
版本二:
@echo off
for %%i in (0 1 2 3 4 5 6 7 8 9 a b c d e f) do (
for %%j in (0 1 2 3 4 5 6 7 8 9 a b c d e f) do (
if %%i neq %%j (
cls
echo 当前颜色代码是:color %%i%%j
color %%i%%j
pause
)
)
)
Last edited by namejm on 2007-1-15 at 12:23 AM ]
Version 1:
@echo off
setlocal enabledelayedexpansion
set str=0123456789abcdef
for /l %%i in (0,1,15) do (
for /l %%j in (0,1,15) do (
if %%i neq %%j (
cls
echo Current color code is: color !str:~%%i,1!!str:~%%j,1!
color !str:~%%i,1!!str:~%%j,1!
pause
)
)
)
Version 2:
@echo off
for %%i in (0 1 2 3 4 5 6 7 8 9 a b c d e f) do (
for %%j in (0 1 2 3 4 5 6 7 8 9 a b c d e f) do (
if %%i neq %%j (
cls
echo Current color code is: color %%i%%j
color %%i%%j
pause
)
)
)
Last edited by namejm on 2007-1-15 at 12:23 AM ]