大家好,欢迎来到IT知识分享网。
自写一个 清理 windows 垃圾的 bat 批处理小程序
1、新建一个记事本:windows 垃圾清理.txt,复制以下代码:
@echo off if exist c:\windows\temp. del /Q /F /S c:\windows\temp\. if exist c:\windows\Temp. del /Q /F /S c:\windows\Temp\. if exist c:\windows\Tempor~1. del /Q /F /S c:\windows\Tempor~1\. if exist c:\windows\History. del /Q /F /S c:\windows\History\. if exist c:\windows\recent. del /Q /F /S c:\windows\recent\. if exist C:\Users\Administrator\AppData\Local\Temp. del /Q /F /S C:\Users\Administrator\AppData\Local\Temp\. if exist C:\Users\Administrator\AppData\Roaming\Tencent. del /Q /F /S C:\Users\Administrator\AppData\Roaming\Tencent\. if exist C:\Users\Administrator\AppData\Roaming\Tencent. del /Q /F /S C:\Users\Administrator\AppData\Roaming\Tencent\. if exist C:\Windows\SoftwareDistribution\Download. del /Q /F /S C:\Windows\SoftwareDistribution\Download\. if exist C:\Documents and Settings\Administrator\Local Settings\temp. del /Q /F /S C:\Documents and Settings\Administrator\Local Settings\temp\. if exist C:\Windows\Temp. del /Q /F /S C:\Windows\Temp\. pause echo "垃圾清理完成" pause echo
2、另存为 :windows 垃圾清理.bat 文件。
3、双击 windows 垃圾清理.bat 文件,可自动清理缓存及 windows 临时文件 垃圾。
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/119288.html
