静默删除Google Chrome缓存 [英] Silently delete Google Chrome cache
问题描述
我有这个:
del "c:\Users\FluffyBunny\AppData\Local\Google\Chrome\Application\18.0.1025.162\CACHE_DIR\Cache\*.*" /S /Q /F
(删除临时文件)
但是每次我更新Chrome时,18.0.1025.162
目录似乎都会更改:(
But the 18.0.1025.162
directory seems to change every time I update Chrome :(
我可以以某种方式匹配其中具有CACHE_DIR\Cache\
的任何目录并删除这些文件吗?
Can I somehow match any directory that has CACHE_DIR\Cache\
inside it and delete those files?
推荐答案
该18.0.1025.162
数字是Google Chrome浏览器的版本号.
例如:Google Chrome v18.0.1025.162.
That 18.0.1025.162
numbers is the Google Chrome's version numbers.
e.g.: Google Chrome v18.0.1025.162.
有两个文件可用于获取当前版本号:
There are two files you can use to get the current version numbers:
%LOCALAPPDATA%\Google\Chrome\User Data\Default\Preferences
在proile.created_by_version
设置中.
例如:"created_by_version": "18.0.1025.162"
.
In proile.created_by_version
setting.
e.g.: "created_by_version": "18.0.1025.162"
.
%LOCALAPPDATA%\Google\Chrome\User Data\Local State
在user_experience_metrics.stability.stats_version
设置中.
例如:"stats_version": "18.0.1025.162"
.
In user_experience_metrics.stability.stats_version
setting.
e.g.: "stats_version": "18.0.1025.162"
.
created_by_version
和stats_version
设置在每个文件中似乎都是唯一的.这意味着在每个文件中似乎都没有带有 setting 名称的重复项.因此,您可以使用FOR
命令来检索数字.
Both created_by_version
and stats_version
settings seem unique in each file. Meaning that there seem no duplicate with that setting name in each file. So you can use FOR
command to retrieve the numbers.
这篇关于静默删除Google Chrome缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!