2重for循环。。- @Echo off
- set "letters=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"
- For %%a in (%letters%) do (
- For %%d in (%letters%) do (
- Echo %%a%%d
- Pause>nul
- )
- )
复制代码
或是递归(??)
- @Echo off
- set "letters=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"
- For %%a in (%letters%) do If "%~1" equ "" (call "%~f0" %%a) Else (Echo %1%%a& Pause>nul)
复制代码
[ 本帖最后由 pusofalse 于 2008-12-13 09:10 编辑 ] |