-
Notifications
You must be signed in to change notification settings - Fork 36
/
clean.bat
33 lines (20 loc) · 908 Bytes
/
clean.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
REM Batch file to erase unneeded and possibly large files if using Visual Studio
REM Note: it would be a BAD IDEA to take this outside this folder or the folder
REM where you keep your own C++ code -- it may delete something you want! Be careful!
REM Jan 2019
REM Get rid of folders we don't need, possibly containing large files
for /d /r . %%d in (Debug,Release,.vs,Backup) do @if exist "%%d" rd /s/q "%%d"
del /s *.o REM Delete Unix- or MinGW-created files
del /s a.out
del /s a.exe
del /s core
del /s *.dep
REM Get rid of other large files
del /s *.ncb REM Earlier versions (before 2010) -- can skip if using 2010 or later
del /s *.sdf REM Earlier versions (2010-2015) -- can skip if using 2017 or later
del /s *.obj REM Still needed because I'm using a diff intermed directory for SSDL library
REM and miscellany
del /s *.log
del /s *.tlog
del /s *.idb
del /s *.lastbuildstate