I want to delete all bin and obj folders to force all projects to rebuild everything

后端 未结 26 2092
迷失自我
迷失自我 2020-11-28 16:53

I work with multiple projects, and I want to recursively delete all folders with the name \'bin\' or \'obj\' that way I am sure that all projects will rebuild everything (so

26条回答
  •  Happy的楠姐
    2020-11-28 17:47

    I use .bat file with this commad to do that.

    for /f %%F in ('dir /b /ad /s ^| findstr /iles "Bin"') do RMDIR /s /q "%%F"
    for /f %%F in ('dir /b /ad /s ^| findstr /iles "Obj"') do RMDIR /s /q "%%F"
    

提交回复
热议问题