中国DOS联盟论坛

中国DOS联盟

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

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

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: 用del删除目录(已解决) 上一主题 | 下一主题
Wingl83
初级用户





积分 109
发帖 65
注册 2008-7-28
状态 离线
『楼 主』:  用del删除目录(已解决)

想删除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 ]


2008-10-5 23:22
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
radem
高级用户

CMD感染者


积分 691
发帖 383
注册 2008-5-23
状态 离线
『第 2 楼』:  

rd /q/s "\\?\%cd%\目录"




2008-10-5 23:26
查看资料  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 3 楼』:  

C:\Test>del /? Deletes one or more files. DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names ERASE [/P] [/F] [/S] [/Q] [/A[[:]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 [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]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




2008-10-6 00:52
查看资料  发短消息 网志   编辑帖子  回复  引用回复
forshare
新手上路





积分 8
发帖 3
注册 2007-11-20
状态 离线
『第 4 楼』:  

rd /s /q "C:\Wing\eREAD v6.0"


2008-10-6 15:07
查看资料  发短消息 网志   编辑帖子  回复  引用回复
516526966
初级用户




积分 63
发帖 37
注册 2008-8-9
状态 离线
『第 5 楼』:  

rd /s /q C:\Wing\eREAD v6.0


2008-10-6 15:28
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (286569692)  编辑帖子  回复  引用回复
23112656
中级用户





积分 220
发帖 99
注册 2008-6-26
状态 离线
『第 6 楼』:  

del是删除文件命令.不是文件夹


2008-10-7 05:26
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
Wingl83
初级用户





积分 109
发帖 65
注册 2008-7-28
状态 离线
『第 7 楼』:  

4楼和5楼的引号有什么不同呢?


2008-10-10 11:22
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
tireless
银牌会员





积分 2025
发帖 1122
注册 2007-9-5
状态 离线
『第 8 楼』:  

Originally posted by Wingl83 at 2008-10-10 11:22 AM: 4楼和5楼的引号有什么不同呢?
5 楼是错误的。路径中有空格,必须将路径用双引号括起来。


2008-10-10 11:44
查看资料  发短消息 网志   编辑帖子  回复  引用回复
Wingl83
初级用户





积分 109
发帖 65
注册 2008-7-28
状态 离线
『第 9 楼』:  

再次感谢楼上的大大


2008-10-12 14:59
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: