且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Windows 中使用 bat 文件删除文件夹和所有内容?

更新时间:2022-11-17 19:37:00

@RD /S /Q "D:PHP_Projects	estprojectRelease	estfolder"

解释:

移除(删除)一个目录.

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