Win服务器缓存垃圾自动清理

2021年03月17日

这个方法是hostloc论坛上一个网友的问题,原问题如下。

C:\Users\A\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations

总共50g,几乎隔一夜,就会有二三十g缓存垃圾产生

火绒手动能扫描,自带的是开机清理,那也不能天天自动开关机啊

其实这样的问题只需要新建一个任务计划配合一个del命令就可以实现了。将以下内容写进一个文本文件内,并将后缀名改为.bat,例如cace.bat

del "C:\Users\A\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\*.*" /q /f

备注:路径一定要正确。

然后,按下键盘上的windows + R键,打开运行,并输入“taskschd.msc”; 点击右上角的“操作”\“创建任务”\ 根据下面图示来进行设置即可。


sicnature ---------------------------------------------------------------------
Your current IP address is: 44.197.251.102
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com.cn/post/3765.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注