系统屋 - 系统光盘下载网站!

当前位置:首页 > 系统教程 > Win7教程 > 详细页面

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

时间:2019-10-13来源:系统屋作者:xiaoz

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

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

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

  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 off echo 请勿关闭本窗口! echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q %systemdrive%\*._mp del /f /s /q %windir%\*.bak del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /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系统怎么清洗打印机?

    打印机大部分每一家公司都有,它是缺一不可的,是办公家居中常用的一种办公设备,它给用户带来了很多便利,因此受到了很多公司的普遍使用,打印机工作一段时候后,很容易出现打印模糊的现象,这时候我们就需要清洗打印机,那么Win7系...

    2019-12-12

  • Win7系统libeay32.dll文件丢失的具体解决方法

    Win7系统libeay32.dll文件丢失怎么办?当我们打开游戏程序时,有时候会遇到系统弹出提示框,提示丢失libeay32.dll文件,可以尝试重新安装解决此问题,出现这样问题有俩种情况,一是应用程序本身安装不完整,二是系统中的libeay32.d...

    2019-12-12

评论

系统教程栏目

栏目热门教程

人气教程排行

站长推荐

热门系统下载

公众号