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.

22 lines
637 B

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