Created
April 4, 2020 02:58
-
-
Save DanielAdeniji/e9c9a595b9ed9e7a134cc75d394bf175 to your computer and use it in GitHub Desktop.
Google Chrome - Cache - Javascript - Clean up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set "_appData=%APPDATA%" | |
set "_appDataLocal=%LOCALAPPDATA%" | |
set "_googleChromeCodeCacheJS=%_appDataLocal%\Google\Chrome\User Data\Default\Code Cache\js" | |
dir "%_googleChromeCodeCacheJS%" | findstr "bytes" | findstr "File" | |
IF [%1]==[] ECHO Please pass in cleanup to actually cleanup | |
if "%1" == "cleanup" ( | |
if exist "%_googleChromeCodeCacheJS%"\*_0 ( | |
echo cleaning up ... | |
forfiles /p "%_googleChromeCodeCacheJS%" /M "*_0" /C "cmd /C dir /b @path & del @path " | |
echo cleaned up | |
) | |
) | |
:complete | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment