联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off&color 1f&setlocal enabledelayedexpansion set "code= abcdefghij "&set "s=┃" set "codes=☆⊙★◎◇◆□■△▲" :begin echo.>temp.txt set /a a=%random%%%10+1,b=%random%%%10+1,c=%random%%%10 set "b=!code:~%b%,1!"&set "tu=!codes:~%c%,1!" if not defined _%a%%b% (set "_%a%%b%=%tu%") else (goto begin) echo ┏━━┳━━┳━━┳━━┳━━┳━━┳━━┳━━┳━━┳━━┓>>temp.txt for /l %%a in (1,1,10) do ( for /l %%i in (1,1,10) do ( set "str=!code:~%%i,1!" if defined _%%a!str! (call :lp %%a) else (set /p=%s% <nul>>temp.txt) ) set /p=%s% %%a<nul>>temp.txt&echo.>>temp.txt if %%a neq 10 ( echo ┣━━╋━━╋━━╋━━╋━━╋━━╋━━╋━━╋━━╋━━┫>>temp.txt ) else ( echo ┗━━┻━━┻━━┻━━┻━━┻━━┻━━┻━━┻━━┻━━┛>>temp.txt )) for /l %%i in (1,1,10) do set /p= !code:~%%i,1! <nul>>temp.txt echo %a%%b%>>temp.txt&set /a n+=1 cls&type temp.txt if %n% lss 100 (for /l %%i in (1,1,2000) do echo>nul&goto begin) else (del /q temp.txt&pause>nul&goto :eof) :lp set "var=!_%1%str%!" set /p=%s% %var% <nul>>temp.txt
Originally posted by slore at 2008-7-16 11:52: 对BAT来说不错了…… 但是对我眼睛来说。。。还是很明显。。。