魔法系统之家下载 - 系统之家,XP系统之家,GhostXP系统,纯净版XP系统,Windows7下载之家

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

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

时间:2019-01-21 13:34:03来源:魔法系统之家下载作者: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提示网页内容将不使用安全的https怎么办?

    在平时工作之余,我们偶热会浏览网页,可是当我们浏览到一些网页的时候却提示“此网页包含的内容将不使用安全的https”,那么当你遇到Win7提示“此网页包含的内容将不使用安全的https”怎么办?不知道的朋友赶紧看看小编整理...

    2019-01-21

  • Win7系统我的文档消失了怎么办?我的文档不见了怎么找回?

    Win7系统我的文档消失了怎么办?如果用户发现桌面上没有我的文档这个图标(文件夹)意味着系统已经将其隐藏起来了,要找回这个图标,我们可以通过组策略来进行配置。...

    2019-01-21

系统教程栏目

栏目热门教程

人气教程排行

站长推荐

热门系统下载