本帖最后由 yyz219 于 2022-6-23 18:50 编辑
我主张先做好备份- ::【清空缓存、垃圾】
- @echo off
- for /f "delims=" %%b in ('dir /b "User Data"') do (
- if "Default" NEQ "%%b" (
- if "PepperFlash" NEQ "%%b" (
- rd /s/q "User Data\%%b")else (echo 跳过)) else (echo 跳过)
- )
-
- del /Q "%~dp0User Data\BrowserMetrics-spare.pma"
- del /Q "%~dp0User Data\chrome_shutdown_ms.txt"
- del /Q "%~dp0User Data\CrashpadMetrics*"
- del /Q "%~dp0User Data\Safe*"
- ::del /Q "%~dp0User Data\First Run" %【(First Run————第一次运行)删除这个以后,书签会多出(已导入)】%
-
- cd "%~dp0User Data\Default"
- del /f/q ChromeDWriteFontCache
- del /s/f/q "Pepper Data\*"
- del /s/f/q "Application Cache\*"
- del /s/f/q "Media Cache\*"
- del /s/f/q "Local Storage\http*"
- del /s/f/q Cache\*
- del /s/f/q GPUCache\*
- del /q bookmarks_*
- del /s/q *.tmp
- del /s/q *.bak
-
- cd "%~dp0User Data\Default"
- ::del /f /s /q "History" %【历史记录】%
- del /f /s /q "Visited Links"
- del /f /s /q "Current Session"
- del /f /s /q "Current Tabs"
- del /f /s /q "Last Session"
- del /f /s /q "Last Tabs"
- ::del /f /s /q "Web Data*" %【如果删除这个,则需要重新登录谷歌】%
- del /f /s /q "DownloadMetadata"
- exit
复制代码 【保存为:清除缓存.bat,放在跟User Data在同一目录】 |