You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
605 B

2 years ago
  1. @echo off
  2. SET TAR=Release_Build
  3. rmdir /Q /S %TAR%
  4. Attrib *.suo -H
  5. del /Q /S *.suo
  6. del /Q /S *.bak
  7. del /Q /S *.thumb
  8. del /Q /S *.cache
  9. REM for /f %%f in ('dir /s /b /a:d') do rmdir /Q /S %%f\bin %%f\obj
  10. for /f %%f in ('dir /s /b /a:d obj') do call:CleanProject %%f
  11. for /f %%f in ('dir /s /b /a:d bin') do call:CleanProject %%f
  12. ::--------------------------------------------------------
  13. ::-- Function to Build
  14. ::--------------------------------------------------------
  15. :CleanProject - here starts my function identified by it's label
  16. echo.
  17. echo. Cleaning %~1
  18. IF EXIST %~1 (rmdir /Q /S %~1)
  19. goto:eof