forked from Eternal-Creativity-Open-Source/WinBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclear_browser_cache.bat
More file actions
36 lines (31 loc) · 1.13 KB
/
clear_browser_cache.bat
File metadata and controls
36 lines (31 loc) · 1.13 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
@echo off
echo Clearing browser caches...
echo.
:: Google Chrome
echo Clearing Google Chrome cache...
del /q /s "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache\*.*"
del /q /s "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache\*.*"
del /q /s "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Media Cache\*.*"
echo Google Chrome cache cleared.
echo.
:: Microsoft Edge
echo Clearing Microsoft Edge cache...
del /q /s "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache\*.*"
del /q /s "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Code Cache\*.*"
del /q /s "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Media Cache\*.*"
echo Microsoft Edge cache cleared.
echo.
:: Mozilla Firefox (generic path, might need adjustment)
echo Clearing Mozilla Firefox cache...
for /d %%x in ("%APPDATA%\Mozilla\Firefox\Profiles\*") do (
del /q /s "%%x\cache2\entries\*.*"
)
echo Mozilla Firefox cache cleared.
echo.
:: Internet Explorer
echo Clearing Internet Explorer cache...
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
echo Internet Explorer cache cleared.
echo.
echo All browser caches cleared.
pause