Skip to content

Instantly share code, notes, and snippets.

@myfreeer
Last active July 12, 2016 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myfreeer/1e38d40737f2f4614876be539438c471 to your computer and use it in GitHub Desktop.
Save myfreeer/1e38d40737f2f4614876be539438c471 to your computer and use it in GitHub Desktop.
a batch file aimed to clean chrome's cache files in one click
@echo off
pushd "%~dp0"
REM 批处理中%~dp0为批处理文件所在路径
if not exist "%~dp0\User Data" exit
for %%i in (
"%~dp0\User Data\Default\Cache"
"%~dp0\User Data\PnaclTranslationCache"
"%~dp0\User Data\ShaderCache"
"%~dp0\User Data\Default\Application Cache"
"%~dp0\User Data\Default\JumpListIconsOld"
"%~dp0\User Data\Default\GPUCache"
"%~dp0\User Data\Default\Media Cache"
"%~dp0\User Data\Default\Pepper Data\Shockwave Flash\CacheWritableAdobeRoot\AssetCache"
"%~dp0\User Data\Default\ChromeDWriteFontCache"
"%~dp0\User Data\Default\Current Session"
"%~dp0\User Data\Default\Current Tabs"
) do (
attrib -r -s -h %%i /D /S
del %%i /f /s /q
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment