Skip to content

Instantly share code, notes, and snippets.

@caglartoklu
Last active July 2, 2019 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caglartoklu/271ca2cead2846a3edbf448bb9c60410 to your computer and use it in GitHub Desktop.
Save caglartoklu/271ca2cead2846a3edbf448bb9c60410 to your computer and use it in GitHub Desktop.
Deletes "bin" and "obj" folders recursively from .NET projects.
REM Introduction to bin_cleaner.bat
REM Deletes "bin" and "obj" folders recursively from .NET projects.
REM This is a simple batch file to DELETE "bin" and "obj" folders
REM for Windows.
REM I use this to really "clean" .NET projects.
REM Usage
REM Copy this to the root of your solution folder.
REM Warning
REM Do not run this in your desktop or documents folder.
REM It will delete all the "bin" and "obj" folders under that folder
REM recuresively.
cd %~dp0
REM Do you really want this?
REM Uncomment the "REM " section from the following line:
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