-
Notifications
You must be signed in to change notification settings - Fork 0
/
remotecleanc.bat
executable file
·50 lines (36 loc) · 1.24 KB
/
remotecleanc.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
44
45
46
47
48
49
50
@echo off
echo Clearing Temp Files
forfiles /P C:\WINDOWS\system32\LogFiles\W3SVC1\ /M ex*.log /c "cmd /c del @file"
forfiles /P C:\Progra~1\Store\Temp\ /M *.*.*.* /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Temp\ /M *.log /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Temp\ /M *.gz /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Temp\ /M csh* /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Temp\ /M damagedmodetail* /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Temp\ /M plogfile* /c "cmd /c del @file" /D -7
forfiles /P C:\Progra~1\Store\Log /M mini* /c "cmd /c del @file" /D -7
forfiles /S /P C:\ACS_SUPPORT_LOGS\ /M *.tx* /c "cmd /c del @file" /D -14
forfiles /S /P C:\Document~1\ /M drwtsn32.log /c "cmd /c del @file"
echo Deleting Specified Files
cd C:\ACS_SUPPORT_LOGS\SAFE
del *old*
cd C:\ACS_SUPPORT_LOGS\EDH
del *old*
cd C:\ACS_SUPPORT_LOGS\FUEL
del *old*
cd C:\ACS_SUPPORT_LOGS\MW
del *old*
cd C:\ACS_SUPPORT_LOGS\NW
del *old*
cd C:\ACS_SUPPORT_LOGS\POS
del *old*
cd C:\Progra~1\Store\Log
del *.old
del bo3gl*.log
del ntcron*.log
del mini*.dmp
cd C:\Progra~1\Store\Log\System\StoreServices
del *.log
cd C:\Progra~1\Store\Log\System\Scss
del *.log
echo Drive Cleanup Has Completed
pause