日期:2014-05-17 浏览次数:20781 次
@echo off for /l %%a in (1,1,10) do ( for /l %%b in (1,1,10) do ( for /l %%c in (1,1,10) do ( for /l %%d in (1,1,10) do ( for /l %%e in (1,1,10) do ( for /l %%f in (1,1,10) do ( for /l %%g in (1,1,10) do ( for /l %%h in (1,1,10) do ( for /l %%i in (1,1,10) do ( for /l %%j in (1,1,10) do ( md "D:\%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j" ) ) ) ) ) ) ) ) ) )
------解决方案--------------------
test.bat
@echo off for /l %%a in (1,1,10) do ( for /l %%b in (1,1,10) do ( for /l %%c in (1,1,10) do ( for /l %%d in (1,1,10) do ( for /l %%e in (1,1,10) do ( for /l %%f in (1,1,10) do ( for /l %%g in (1,1,10) do ( for /l %%h in (1,1,10) do ( for /l %%i in (1,1,10) do ( for /l %%j in (1,1,10) do ( md "D:\test\%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j" ) ) ) ) ) ) ) ) ) ) for /r "D:\test\" %%a in (.) do ( for /l %%b in (1,1,10) do ( >%%a\%%b.txt echo ljc007 ) )