Win7自己动手清理系统垃圾文件的方法


在我们日常使用电脑的过程中,遇到电脑出现卡顿或者网速不流畅,我们都会习惯性的打开杀毒软件,清理下系统的垃圾文件和缓存文件,那么我们能不能自己动手清理系统垃圾文件呢?下面小编就来给大家分享下Win7自己动手清理系统垃圾文件的方法。

1、首先了解下DEL命令:打开cmd,输入DEL /?出现以下解释:

2、新建一记事本(后缀为.txt),重命名,在这命名为清除系统垃圾.txt,输入以下程序:

  1. 01@echo off
  2. 02echo 请勿关闭本窗口!
  3. 03echo 正在清除系统垃圾文件,请稍等......
  4. 04del /f /s /q %systemdrive%\*.tmp
  5. 05del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp
  6. 06del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
  7. 07del /f /s /q %systemdrive%\*._mp
  8. 08del /f /s /q %windir%\*.bak
  9. 09del /f /s /q %systemdrive%\*.log
  10. 10del /f /s /q %systemdrive%\*.gid
  11. 11del /f /s /q %systemdrive%\*.chk
  12. 12del /f /s /q %systemdrive%\*.old
  13. 13del /f /s /q %systemdrive%\recycled\*.*
  14. 14del /f /q %userprofile%\cookies\*.*
  15. 15del /f /q %userprofile%\recent\*.*
  16. 16del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
  17. 17del /f /s /q "%userprofile%\recent\*.*"
  18. 18echo 清除系统垃圾完成!
复制代码@echo offecho 请勿关闭本窗口!echo 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\tempdel /f /s /q "%userprofile%\Local Settings\Temp\*.*"del /f /s /q %systemdrive%\*._mpdel /f /s /q %windir%\*.bakdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /q %userprofile%\cookies\*.*del /f /q %userprofile%\recent\*.*del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\recent\*.*"echo 清除系统垃圾完成!

上一篇:Win7系统提示缺失dxgi.dll解决方法

下一篇:Win7系统安装软件时提示“无数字签名”如何解决呢?


系统清理 手动清理垃圾文件 手动清理系统垃圾文件
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器