Originally posted by zh159 at 2008-8-9 10:59 PM:
效果不错,个人感觉同一竖间隔太密了
刚试了一下……行不设空格
列中设空格的原因,是为了突出数码一条条的效果。
请看测试代码:
@echo off
mode con cols=100 lines=30
color 0a
setlocal enabledelayedexpansion
set a=0
for %%m in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (
if !a! leq 9 (set n0!a!=%%m) else (set n!b!=%%m)
set /a a+=1
set /a b=!a!-10
)
for %%M in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
set n!b!=%%M
set /a b+=1
)
for /l %%a in (1,1,20) do (
set h%%a=
for /l %%b in (1,1,15) do (
call,set code=%%n!random:~1,2!%%
if not defined code (set "code= ")
set h%%a=!code! !h%%a!
)
)
:a
ping -n>nul
cls
for /l %%a in (1,1,15) do echo, !h%%a! &echo,
for /l %%a in (14,-1,1) do (
set /a n=1+%%a
set h!n!=!h%%a!
)
set hn=%h2%
set h1=
for /l %%b in (1,1,15) do (
call,set code=%%n!random:~1,2!%%
if not defined code (set "code= ")
set h1=!code! !h1!
)
goto :a
pause
Last edited by 523066680 on 2008-8-10 at 08:07 AM ]