-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemove_Junk.bat
More file actions
49 lines (37 loc) · 1.27 KB
/
Remove_Junk.bat
File metadata and controls
49 lines (37 loc) · 1.27 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
set dir= "%~dp0"
echo %dir%
CD %dir%
REM /D = directories only
REM /R = Recursive
REM FOR dir %%Var IN (match) DO command command_options // match is the filter used to return results
REM IF /i = ignore case
REM %%~nxX = expand %%X variable to name and extension only
REM for is required because we don't know where the directory might be.
FOR /D /R %dir% %%X IN (ipch) DO if exist %%X RMDIR /S /Q "%%X"
echo Deleted ipch VS files
FOR /D /R %dir% %%X IN (*.tlog) DO if exist %%X RMDIR /S /Q "%%X"
echo Deleted .tlog VS files
FOR /D /R %dir% %%X IN (Debug) DO if exist %%X call :process_debug "%%X"
echo Deleted Debug files
FOR /D /R %dir% %%X IN (Release) DO if exist %%X RMDIR /S /Q "%%X"
echo Deleted Release files
del /S *.sdf
echo Deleted .sdf VS files
del /S *.pdom
echo Deleted .pdom eclipse indexing files
del /S *.db
echo Deleted .db
FOR /D /R %dir% %%X IN (org.eclipse.epp.logging.aeri.ui) DO if exist %%X RMDIR /S /Q "%%X"
echo Deleted org.eclipse.epp.logging.aeri.ui
del .metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources
echo Deleted org.eclipse.core.resources
pause
exit
goto :EOF
:process_debug
set CTD=%1
for /R %CTD% %%f in (*.*) do (
if /i not "%%~xf"==".mk" if not "%%~nf"=="makefile" del "%%f"
)
goto :EOF