Board logo

标题: 用del删除目录(已解决) [打印本页]

作者: Wingl83     时间: 2008-10-5 23:22    标题: 用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 ]

作者: radem     时间: 2008-10-5 23:26
rd /q/s "\\?\%cd%\目录"

作者: HAT     时间: 2008-10-6 00:52
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

作者: forshare     时间: 2008-10-6 15:07
rd /s /q "C:\Wing\eREAD v6.0"

作者: 516526966     时间: 2008-10-6 15:28
rd /s /q C:\Wing\eREAD v6.0

作者: 23112656     时间: 2008-10-7 05:26
del是删除文件命令.不是文件夹

作者: Wingl83     时间: 2008-10-10 11:22
4楼和5楼的引号有什么不同呢?

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

作者: Wingl83     时间: 2008-10-12 14:59
再次感谢楼上的大大