Last active
August 25, 2021 07:11
-
-
Save noseratio/205be8ff40a3849c911516dfc3bc65a9 to your computer and use it in GitHub Desktop.
Delete VS build artefacts
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 | |
set folders=bin obj .vs | |
echo This will delete all [%folders%] folders recursively and cannot be undone. | |
choice /t 10 /d n /c yn /m "Press Y to continue, N to stop" | |
if %errorLevel% neq 1 goto :EOF | |
for /d /r . %%D in (%folders%) do if exist "%%~fD\" (echo %%D && rd "%%~fD" /s /q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment