开发者

How to delete all files and sub-directorys from a dir without delete the dir in Windows CMD?

Hi I'm looking for a command similar to this command in Linux:

rm -fRv debug/*

This command delete all files and directories that is inside debug but without delete the debug directory.

How can I do this in开发者_开发问答 Windows with CMD ?

bye


for /d %x in (debug\*) do @rd /s /q "%x"
del /s /f /q debug\*


Seems to for me:

del /S /Q debug\*

(Though, off-topic, I'm using the MinGW rm command, which works just the same as under Linux.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜