lea*_*ner 126 windows command batch-file delete-file
我想使用bat文件删除包含所有文件和子文件夹的文件夹.
我尝试了以下,但它不起作用:
@DEL D:\PHP_Projects\testproject\Release\testfolder*.*
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
Jon*_*Jon 228
@RD /S /Q "D:\PHP_Projects\testproject\Release\testfolder"
Run Code Online (Sandbox Code Playgroud)
说明:
删除(删除)目录.
Run Code Online (Sandbox Code Playgroud)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
小智 28
del /s /q c:\where ever the file is\*rmdir /s /q c:\where ever the file is\mkdir c:\where ever the file is\