Skip to content

Instantly share code, notes, and snippets.

@jthelin
Created June 7, 2015 01:59
Show Gist options
  • Save jthelin/c8fe4b3d5960d4e9cc63 to your computer and use it in GitHub Desktop.
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.
@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