- @echo off&setlocal enabledelayedexpansion
- set "str=abcdefghijklmnopqrstuvwxyz0123456789"
- for /l %%a in (1,1,9) do (
- for /l %%b in (1,1,9) do (
- set /a a=!random!%%36
- call,set "var=!var!%%str:~!a!,1%%"
- )
- md !var!&cd !var!&set "var="
- )
复制代码 其中的a=!random!%%36
call,set "var=!var!%%str:~!a!,1%%"
md !var!&cd !var!&set "var="
的意思 其中两个叹号的和双百分号的作用 |