Created
February 9, 2021 21:34
-
-
Save shawnwildermuth/f2a549053f594d6bb3877451c0f9aa1c to your computer and use it in GitHub Desktop.
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
@echo off | |
echo Cleaning node_modules Directories | |
FOR /d /r . %%d IN (node_modules) DO (call :deleteDirs "%%d") | |
echo Cleaning bin Directories | |
FOR /d /r . %%d IN (bin) DO (call :deleteDirs "%%d") | |
echo Cleaning obj Directories | |
FOR /d /r . %%d IN (obj) DO (call :deleteDirs "%%d") | |
echo Cleaning .bak files | |
del /S *.bak | |
goto :eof | |
:deleteDirs | |
@IF EXIST %1 ( | |
@echo Deleting %1 | |
rimraf %1 | |
) | |
goto :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment