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-12 18:24
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How do I delete a directory under DOS? View 1,671 Replies 12
Original Poster Posted 2003-06-06 00:00 ·  中国 上海 青浦区 电信
初级用户
Credits 103
Posts 1
Joined 2003-06-06 00:00
23-year member
UID 3970
Gender Male
Status Offline
I want to delete a directory bbb

Why is it still there when I use del bbb??
Floor 2 Posted 2003-06-06 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
How can you use del to delete a directory?
Try the rd command.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-06-06 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
If there are still files in this folder, you can try the DELTREE command.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2003-06-06 00:00 ·  中国 江苏 南京 电信
初级用户
Credits 116
Posts 3
Joined 2003-06-06 00:00
23-year member
UID 4023
Gender Male
Status Offline
To delete a directory with a DOS internal command, use rd, but it requires the directory to be empty. In other words, if you use rd, you have to delete the directories and files under it level by level first. DELTREE is much more straightforward!
Floor 5 Posted 2003-06-07 00:00 ·  中国 天津 联通
初级用户
Credits 126
Posts 6
Joined 2003-06-02 00:00
23-year member
UID 2958
Gender Male
Status Offline
You can use the rd command, but it requires the directory to be empty, and the current directory must be its parent directory. The deltree command is an external command; to prevent accidental deletion you can add the /y parameter.
Floor 6 Posted 2003-06-07 00:00 ·  中国 北京 北京神州长城通信技术发展中心中国长城互联网
初级用户
Credits 218
Posts 26
Joined 2003-05-30 00:00
23-year member
UID 2628
Gender Male
Status Offline
If it's an empty directory, use rd. If it's not empty, you can use the deltree command.
Floor 7 Posted 2003-06-07 00:00 ·  中国 上海 闵行区 电信
中级用户
Credits 226
Posts 31
Joined 2003-06-04 00:00
23-year member
UID 3544
Gender Male
Status Offline

I'm getting dizzy, so complicated!!!
All I know is to right-click, then choose Delete.
Floor 8 Posted 2003-06-08 00:00 ·  中国 河南 南阳 内乡县 联通
初级用户
Credits 168
Posts 15
Joined 2003-06-05 00:00
23-year member
UID 3766
Gender Male
Status Offline
Use rd to delete an empty directory with no files in it.
Floor 9 Posted 2003-06-08 00:00 ·  中国 北京 腾讯云
初级用户
Credits 115
Posts 3
Joined 2003-06-08 00:00
23-year member
UID 4344
Gender Male
Status Offline
Use rd to delete an empty directory, use deltree to delete a directory that has files in it.
Floor 10 Posted 2003-06-08 00:00 ·  中国 北京 腾讯云
初级用户
Credits 115
Posts 3
Joined 2003-06-08 00:00
23-year member
UID 4344
Gender Male
Status Offline
Study it and practice it
Floor 11 Posted 2003-06-10 00:00 ·  中国 上海 浦东新区 电信
中级用户
Credits 226
Posts 31
Joined 2003-06-04 00:00
23-year member
UID 3544
Gender Male
Status Offline
Hahaha, now I know
echo y| deltree ....
Floor 12 Posted 2003-06-11 00:00 ·  中国 广西 梧州 藤县 电信
初级用户
Credits 131
Posts 7
Joined 2003-06-11 00:00
23-year member
UID 4835
Gender Male
Status Offline
When you say use RD to delete an empty directory, is that in DOS or in the registry?
Floor 13 Posted 2003-06-11 00:00 ·  中国 河北 石家庄 桥西区 联通
初级用户
Credits 107
Posts 1
Joined 2003-06-11 00:00
23-year member
UID 4841
Gender Male
Status Offline
Just do it in DOS.
Forum Jump: