如何在批处理创建的文件夹的最后一层下,创建10~20个文本文件?
@ECHOOFFFOR/l%%AIN(1,1,2)DO(FOR/l%%BIN(1,1,2)DO(FOR/l%%CIN(1,1,2)DO(FOR/l%%DIN(1,1,2)...
@ECHO OFF
FOR /l %%A IN (1,1,2) DO (
FOR /l %%B IN (1,1,2) DO (
FOR /l %%C IN (1,1,2) DO (
FOR /l %%D IN (1,1,2) DO (
FOR /l %%E IN (1,1,2) DO (
FOR /l %%F IN (1,1,2) DO (
FOR /l %%G IN (1,1,2) DO (
MD %%A\%%B\%%C\%%D\%%E\%%F\%%G
)))))))
这是我建的7级文件夹 展开
FOR /l %%A IN (1,1,2) DO (
FOR /l %%B IN (1,1,2) DO (
FOR /l %%C IN (1,1,2) DO (
FOR /l %%D IN (1,1,2) DO (
FOR /l %%E IN (1,1,2) DO (
FOR /l %%F IN (1,1,2) DO (
FOR /l %%G IN (1,1,2) DO (
MD %%A\%%B\%%C\%%D\%%E\%%F\%%G
)))))))
这是我建的7级文件夹 展开
1个回答
展开全部
@ECHO OFF
FOR /l %%A IN (1,1,2) DO (
FOR /l %%B IN (1,1,2) DO (
FOR /l %%C IN (1,1,2) DO (
FOR /l %%D IN (1,1,2) DO (
FOR /l %%E IN (1,1,2) DO (
FOR /l %%F IN (1,1,2) DO (
FOR /l %%G IN (1,1,2) DO (
MD %%A\%%B\%%C\%%D\%%E\%%F\%%G
cd %%A\%%B\%%C\%%D\%%E\%%F\%%G
for /l %%i in (1,1,20) do echo %date% %time% %%i>%i.txt
cd %~dp0
)))))))
FOR /l %%A IN (1,1,2) DO (
FOR /l %%B IN (1,1,2) DO (
FOR /l %%C IN (1,1,2) DO (
FOR /l %%D IN (1,1,2) DO (
FOR /l %%E IN (1,1,2) DO (
FOR /l %%F IN (1,1,2) DO (
FOR /l %%G IN (1,1,2) DO (
MD %%A\%%B\%%C\%%D\%%E\%%F\%%G
cd %%A\%%B\%%C\%%D\%%E\%%F\%%G
for /l %%i in (1,1,20) do echo %date% %time% %%i>%i.txt
cd %~dp0
)))))))
追问
这个可以使用,我想问一下,能否设置文件大小啊?
追答
可以,准备几个样板文件,直接type 样板文件>%%i.txt
样板文件多大,文件就多大
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询