中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 03:19
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] Batch create folders named 1 to 100
Printable Version  3,102 / 34
Floor31 zqdarkday Posted 2007-05-05 11:36
中级用户 Posts 79 Credits 210 From 湖北
cd\
md a
cd a
for /l %%a in (1,1,100) do @md %%a
That's it
I tried it
Floor32 haiou327 Posted 2007-05-12 18:31
高级用户 Posts 348 Credits 713
In the for /l loop, "/l" stands for "loop". It is used to create a numeric sequence - controlled loop. The syntax "for /l %%a in (start, step, end)" is used to iterate from the start number, with the specified step, up to the end number. In the given code, "for /l %%a in (1,1,100) do md %%a" will create 100 directories named from 1 to 100.
Floor33 wudixin96 Posted 2007-05-12 18:46
银牌会员 Posts 931 Credits 1,928
Originally posted by haiou327 at 2007-5-12 06:31 PM:

What does /l mean here?


for /?
Floor34 superhacker Posted 2007-06-21 17:29
初级用户 Posts 32 Credits 66
There is a simplest method. Open Excel, input "md 1" in it, drag until 100, copy, create a text file, paste it in, change the extension to bat, and then run it.
Floor35 zzghost Posted 2007-06-22 00:09
初级用户 Posts 14 Credits 43
The idea on floor 34 is very creative, reflecting the thought of mixed programming.
Prev  1 2 3
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023