中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-13 21:24
楼 主 用del删除目录(已解决) 发表于 2008-10-05 23:22 ·  中国 广东 广州 电信
初级用户
★★
积分 109
发帖 65
注册 2008-07-28 22:04
UID 122281
性别 女
状态 离线
想删除C:\Wing\eREAD v6.0文件夹,用


del /f /s /q /a "C:\Wing\eREAD v6.0"


没有错误提示,但C:\Wing\eREAD v6.0文件夹中的子文件夹和C:\Wing\eREAD v6.0文件夹都没有删除掉。

[ Last edited by Wingl83 on 2008-10-12 at 14:59 ]
2 发表于 2008-10-05 23:26 ·  中国 广东 韶关 电信
高级用户
★★★
CMD感染者
积分 691
发帖 383
注册 2008-05-23 00:38
UID 119451
性别 男
状态 离线
rd /q/s "\\?\%cd%\目录"
3 发表于 2008-10-06 00:52 ·  美国 惠普HP
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
UID 89899
性别 男
状态 离线
C:\Test>del /?
Deletes one or more files.

DEL attributes]] names
ERASE attributes]] names

names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.

/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
- Prefix meaning not

If Command Extensions are enabled DEL and ERASE change as follows:

The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.


C:\Test>rd /?
Removes (deletes) a directory.

RMDIR path
RD path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S
4 发表于 2008-10-06 15:07 ·  中国 浙江 杭州 联通
新手上路
积分 8
发帖 3
注册 2007-11-20 08:37
UID 103189
性别 男
状态 离线
rd /s /q "C:\Wing\eREAD v6.0"
5 发表于 2008-10-06 15:28 ·  中国 山东 淄博 联通
初级用户
积分 63
发帖 37
注册 2008-08-09 11:46
UID 123026
性别 男
状态 离线
rd /s /q C:\Wing\eREAD v6.0
6 发表于 2008-10-07 05:26 ·  中国 云南 昆明 电信
中级用户
★★
积分 220
发帖 99
注册 2008-06-26 15:12
UID 120818
性别 男
状态 离线
del是删除文件命令.不是文件夹
7 发表于 2008-10-10 11:22 ·  中国 广东 广州 电信
初级用户
★★
积分 109
发帖 65
注册 2008-07-28 22:04
UID 122281
性别 女
状态 离线
4楼和5楼的引号有什么不同呢?
8 发表于 2008-10-10 11:44 ·  中国 江西 赣州 电信
银牌会员
★★★★
积分 2,025
发帖 1,122
注册 2007-09-05 20:15
UID 96653
性别 男
状态 离线
Originally posted by Wingl83 at 2008-10-10 11:22 AM:
4楼和5楼的引号有什么不同呢?

5 楼是错误的。路径中有空格,必须将路径用双引号括起来。
9 发表于 2008-10-12 14:59 ·  中国 广东 广州 电信
初级用户
★★
积分 109
发帖 65
注册 2008-07-28 22:04
UID 122281
性别 女
状态 离线
再次感谢楼上的大大
论坛跳转: