中国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-12 17:24
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How do I delete a directory under DOS?
Printable Version  1,670 / 12
Floor1 中华英雄 Posted 2003-06-06 00:00
初级用户 Posts 1 Credits 103
I want to delete a directory bbb

Why is it still there when I use del bbb??
Floor2 如是大师 Posted 2003-06-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
How can you use del to delete a directory?
Try the rd command.
Floor3 Wengier Posted 2003-06-06 00:00
系统支持 Posts 10,521 Credits 27,736
If there are still files in this folder, you can try the DELTREE command.
Floor4 clamis Posted 2003-06-06 00:00
初级用户 Posts 3 Credits 116
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!
Floor5 lvyang Posted 2003-06-07 00:00
初级用户 Posts 6 Credits 126
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.
Floor6 shadowman Posted 2003-06-07 00:00
初级用户 Posts 26 Credits 218
If it's an empty directory, use rd. If it's not empty, you can use the deltree command.
Floor7 幻虫 Posted 2003-06-07 00:00
中级用户 Posts 31 Credits 226

I'm getting dizzy, so complicated!!!
All I know is to right-click, then choose Delete.
Floor8 山野村夫 Posted 2003-06-08 00:00
初级用户 Posts 15 Credits 168
Use rd to delete an empty directory with no files in it.
Floor9 xiaoxiong Posted 2003-06-08 00:00
初级用户 Posts 3 Credits 115
Use rd to delete an empty directory, use deltree to delete a directory that has files in it.
Floor10 xiaoxiong Posted 2003-06-08 00:00
初级用户 Posts 3 Credits 115
Study it and practice it
Floor11 幻虫 Posted 2003-06-10 00:00
中级用户 Posts 31 Credits 226
Hahaha, now I know
echo y| deltree ....
Floor12 amingshao Posted 2003-06-11 00:00
初级用户 Posts 7 Credits 131
When you say use RD to delete an empty directory, is that in DOS or in the registry?
Floor13 zfdzt Posted 2003-06-11 00:00
初级用户 Posts 1 Credits 107
Just do it in DOS.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023