Windows命令等同于“ rm -rf”?


11

我需要通过在批处理文件中运行命令来删除整个目录(包含很多子目录和文件)。

我尝试了删除和擦除,但是这两个操作都要求我回答“是/否”,而且如果其中包含子目录或文件,似乎也无法删除目录。

在没有任何提示的情况下,我可以使用什么命令删除包含子目录/文件的目录?

Answers:



2

尝试:

DEL /Q /S /F <FILE/DIR>

要么

DELETE /Q /S /F <FILE/DIR>

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.