Skip to content

Instantly share code, notes, and snippets.

@alimbada
Created June 23, 2012 00:08
Show Gist options
  • Save alimbada/2975897 to your computer and use it in GitHub Desktop.
Save alimbada/2975897 to your computer and use it in GitHub Desktop.
Recursively nukes bin and obj directories in a source/directory tree.
for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d"
REM Remove extra %s if you want to run command straight from the command line, i.e.
REM for /d /r . %d in (bin,obj) do @if exist "%d" rd /s/q "%d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment