China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 11:02
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Nested for loops View 674 Replies 1
Original Poster Posted 2007-04-30 07:35 ·  中国 山东 菏泽 联通
新手上路
Credits 4
Posts 1
Joined 2007-01-20 11:00
19-year member
UID 77136
Gender Male
Status Offline
I want to create 10 directories under each of three directories, using the directory names in a text file as variables. How should I write the batch file with nested for loops?
Floor 2 Posted 2007-04-30 07:45 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Search the forum a bit more.

for %%a in (a b c) do for /l %%b in (1,1,10) do md D:\%%a\%%b
Forum Jump: