@echo offfor /l %i in(1,1,20) do echo test >>%i.txtpause(1,1,20)可以修改 如果是创建1到100个文件 可以改成(1,1,100) 依此类推
@echo offfor /l %%n in (1,1,20) do (echo test >> %%n.txt)