静默删除Google Chrome缓存 [英] Silently delete Google Chrome cache

查看:252
本文介绍了静默删除Google Chrome缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个:

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_versionstats_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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆