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-01 15:47
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to create new folders with a batch file View 1,732 Replies 2
Original Poster Posted 2005-12-14 09:57 ·  中国 重庆 联通
新手上路
Credits 6
Posts 1
Joined 2005-12-06 17:28
20-year member
UID 46624
Status Offline
How can I create a new folder 123 on the desktop, then create another 123 inside folder 123..., and so on until there are 10 of them? How can I do this with a batch file? Thanks!!!
Floor 2 Posted 2005-12-14 10:47 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
The batch file below works under Win2000/XP, but is invalid under win9x.

@echo off
%SystemDrive%
cd %UserProfile%\桌面
for /l %%a in (1,1,10) do (
md 123
cd 123
)


[ Last edited by JonePeng on 2005-12-14 at 10:49 ]
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 3 Posted 2005-12-15 13:50 ·  中国 浙江 温州 平阳县 电信
初级用户
Credits 36
Posts 14
Joined 2005-12-09 12:12
20-year member
UID 46777
Gender Male
Status Offline
An expert is an expert indeed
Forum Jump: