2025年6月21日 星期六

"rm -rf" equivalent for Windows?

ref: https://stackoverflow.com/questions/97875/rm-rf-equivalent-for-windows

RMDIR or RD if you are using the classic Command Prompt (cmd.exe):

rd /s /q "path"


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

沒有留言:

張貼留言