-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathclean.cmd
More file actions
20 lines (15 loc) · 562 Bytes
/
clean.cmd
File metadata and controls
20 lines (15 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
rmdir /s /q .vs
rmdir /s /q .idea
del /s /q rdpWrapper\FodyWeavers.xsd
for /f "delims=" %%e in ('dir /A:D /S /B *bin^|find /i "\bin"') do @if exist "%%e" (@rmdir /S /Q %%e)
for /f "delims=" %%e in ('dir /A:D /S /B *obj^|find /i "\obj"') do @if exist "%%e" (@rmdir /S /Q %%e)
for /f "delims=" %%e in ('dir /A:D /S /B *.vs^|find /i "\.vs"') do @if exist "%%e" (@rmdir /S /Q %%e)
git reflog expire --expire=1.days.ago --expire-unreachable=now --all
if errorlevel 1 goto error
git gc --prune=now
if errorlevel 1 goto error
goto exit
:error
pause
:exit