-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClearCache.bat
146 lines (98 loc) · 2.59 KB
/
ClearCache.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
@ECHO OFF
color 0a
title CLEARING CACHE BY CLEARCACHE
:clearing1
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q C:\Windows\Temp\*.*
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
cls
goto :choice
pause
cls
:choice
echo WELCOME to CleanCache By Prince Gamer2.0
echo(
set /P c=WANT TO CLEAN CACHE AUTOMATICALLY [Y/N]?
if /I "%c%" EQU "Y" goto :wannacontinue
if /I "%c%" EQU "N" goto :wanttoexit
goto :choice
:wanttoexit
echo BYE, SEE YOU NEXT TIME......
pause
exit
:wannacontinue
cls
echo REMEMBER NOT TO CLOSE THE WINDOW, WHICH WILL LEAD TO THE STOPPING OF THE PROCESS. THOUGH YOU CAN MINIMIZE THE WINDOW
echo(
echo NOW CHOOSE THE TIME AFTER WHICH YOU WANT ME TO CLEAR CACHE
goto :choice0
:choice0
echo(
SET /P UserInput=Please Enter Time (in mins):
IF %UserInput% EQU 0 GOTO E_INVALIDINPUT
SET /A UserInputVal="%UserInput%"*60
IF %UserInputVal% GTR 0 goto top1
IF %UserInputVal% EQU 0 goto plsenternum
goto top1
:E_INVALIDINPUT
ECHO Invalid user input
goto choice0
:top1
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q C:\Windows\Temp\*.*
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
cls
ping 127.0.0.1 -n %UserInputVal%
goto top1
:plsenternum
echo Kindly Enter a number like 1,2,3,4,..... below
goto choice0
@ECHO OFF
color 0a
title CLEARING CACHE BY CLEARCACHE
:clearing1
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q C:\Windows\Temp\*.*
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
cls
goto :choice
pause
cls
:choice
echo WELCOME to CleanCache By Prince Gamer2.0
echo(
set /P c=WANT TO CLEAN CACHE AUTOMATICALLY [Y/N]?
if /I "%c%" EQU "Y" goto :wannacontinue
if /I "%c%" EQU "N" goto :wanttoexit
goto :choice
:wanttoexit
echo BYE, SEE YOU NEXT TIME......
pause
exit
:wannacontinue
cls
echo REMEMBER NOT TO CLOSE THE WINDOW, WHICH WILL LEAD TO THE STOPPING OF THE PROCESS. THOUGH YOU CAN MINIMIZE THE WINDOW
echo(
echo NOW CHOOSE THE TIME AFTER WHICH YOU WANT ME TO CLEAR CACHE
goto :choice0
:choice0
echo(
SET /P UserInput=Please Enter Time (in mins):
IF %UserInput% EQU 0 GOTO E_INVALIDINPUT
SET /A UserInputVal="%UserInput%"*60
IF %UserInputVal% GTR 0 goto top1
IF %UserInputVal% EQU 0 goto plsenternum
goto top1
:E_INVALIDINPUT
ECHO Invalid user input
goto choice0
:top1
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q C:\Windows\Temp\*.*
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
cls
ping 127.0.0.1 -n %UserInputVal%
goto top1
:plsenternum
echo Kindly Enter a number like 1,2,3,4,..... below
goto choice0