-
Notifications
You must be signed in to change notification settings - Fork 100
/
Clean.bat
43 lines (35 loc) · 778 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
echo Cleaning...
del /f /q /s *.bak
del /f /q /s *.dcu
del /f /q /s *.ddp
del /f /q /s *.~*
del /f /q /s *.local
del /f /q /s *.identcache
del /f /q /s *.tvsconfig
del /f /q /s *.stat
del /f /q /s *.bpl
del /f /q /s *.cbk
del /f /q /s *.dcp
del /f /q /s *.dsk
del /f /q /s *.o
del /f /q /s *.rsm
del /f /q /s *.skincfg
del /f /q /s *.log
del /f /q /s *.xml
del /f /q /s *.dof
del /f /q /s *.mpb
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d __history') do (
rd /s /q "%%i"
)
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d __recovery') do (
rd /s /q "%%i"
)
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d Win32') do (
rd /s /q "%%i"
)
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d Win64') do (
rd /s /q "%%i"
)
if "%1"=="" goto :eof
pause