Created
June 7, 2015 01:59
-
-
Save jthelin/c8fe4b3d5960d4e9cc63 to your computer and use it in GitHub Desktop.
CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@REM CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree. | |
@REM - Place this file in the solutuon root directory. | |
@setlocal | |
@echo off | |
@if NOT "%ECHO%"=="" @echo %ECHO% | |
set CMDHOME=%~dp0 | |
@echo Deleting build output files | |
For /D %%a in (%CMDHOME%*) Do ( | |
if exist "%%a\bin" ( | |
@echo Deleting files in %%a\bin | |
del /S/Q "%%a\bin" | |
) | |
if exist "%%a\obj" ( | |
@echo Deleting files in %%a\obj | |
del /S/Q "%%a\obj" | |
) | |
) | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment