yuanrui / blog

Some notes.
http://yuanrui.github.io
3 stars 0 forks source link

批量删除当前文件夹和子文件夹下bin和obj中的文件 #55

Open yuanrui opened 1 year ago

yuanrui commented 1 year ago

批量删除当前文件夹和子文件夹下bin和obj中的文件,bat脚本如下:

start for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d"

https://superuser.com/questions/201888/how-to-create-batch-file-that-delete-all-the-folders-named-bin-or-obj-recurs https://stackoverflow.com/questions/521382/command-line-tool-to-delete-folder-with-a-specified-name-recursively-in-windows/521433