系统之家 - Windows操作系统&装机软件下载网站!

当前位置: 首页  >  教程资讯  >  Win7教程 win7清理垃圾运行命令代码是什么 win7电脑有哪些清理垃圾运行命令代码

win7清理垃圾运行命令代码是什么 win7电脑有哪些清理垃圾运行命令代码

时间:2024-03-14 11:28:17 来源: 人气:

  在使用win7操作系统的过程中,小伙伴们可能会遇到系统垃圾过多的问题,这不仅会占用大量的磁盘空间,还可能导致系统运行缓慢,这个时候我们小伙伴就想要知道win7清理垃圾运行命令代码是什么,那么接下来小编就带着大家一起来看看win7电脑有哪些清理垃圾运行命令代码,快来学习一下吧。

  具体方法:

  1、首先在电脑桌面的空白处鼠标右击,选择“新建--文本文档”;

  2、然后将下面的代码复制粘贴进去;

  @echo off

  color 0a

  title windows7系统垃圾清理---

  echo

  echo

  echo.

  echo. win7之家正在教你如何清除系统垃圾文件

  echo. 请稍等......

  echo

  echo.

  echo

  echo

  echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时

  echo 请勿关闭本窗口。

  echo 正在清除系统垃圾文件,请稍后......

  echo 删除补丁备份目录

  RD %windir%$hf_mig$ /Q /S

  echo 把补丁卸载文件夹的名字保存成123456.txt

  dir %windir%$NtUninstall* /a:d /b >%windir%123456.txt

  echo 从123456.txt中读取文件夹列表并且删除文件夹

  for /f %%i in (%windir%123456.txt) do rd %windir%\%%i /s /q

  echo 删除123456.txt

  del %windir%123456.txt /f /q

  echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%*.log已经包含删除此类文件)

  del %windir%KB*.log /f /q

  echo 删除系统盘目录下临时文件

  del /f /s /q %systemdrive%*.tmp

  echo 删除系统盘目录下临时文件

  del /f /s /q %systemdrive%*._mp

  echo 删除系统盘目录下日志文件

  del /f /s /q %systemdrive%*.log

  echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详)

  del /f /s /q %systemdrive%*.gid

  echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件

  del /f /s /q %systemdrive%*.chk

  echo 删除系统目录下old文件

  del /f /s /q %systemdrive%*.old

  echo 删除回收站的无用文件

  del /f /s /q %systemdrive% ecycled*.*

  echo 删除系统目录下备份文件

  del /f /s /q %windir%*.bak

  echo 删除应用程序临时文件

  del /f /s /q %windir%prefetch*.*

  echo 删除系统维护等操作产生的临时文件

  rd /s /q %windir% emp & md %windir% emp

  echo 删除当前用户的COOKIE(IE)

  del /f /q %userprofile%cookies*.*

  echo 删除internet临时文件

  del /f /s /q "%userprofile%local settings emporary internet files*.*"

  echo 删除当前用户日常操作临时文件

  del /f /s /q "%userprofile%local settings emp*.*"

  echo 删除访问记录(开始菜单中的文档里面的东西)

  del /f /s /q "%userprofile% ecent*.*"

  echo

  echo

  echo

  echo

  echo.

  echo.

  echo

  echo  恭喜您!清理全部完成!

  echo. win7之家的任务以完成,谢谢

  echo

  echo.

  echo

  echo

  echo.

  3、粘贴完之后选择“文件”选项→另存为→选择“保存在”桌面→“文件名”改为“清除系统LJ.bat”→“保存类型”选择“所有文件”,点击保存即可。

win7清理垃圾运行命令代码是什么 win7电脑有哪些清理垃圾运行命令代码(图1)

  4、以后要清理垃圾的时候只要双击一下这个文件电脑就会快速的自动清理系统垃圾了。

  以上全部内容就是小编带给大家的win7电脑有哪些清理垃圾运行命令代码详细内容分享啦,小伙伴们如果你们有需要的话,就快点按照上述的步骤进行操作。

教程资讯

Win7教程排行

系统教程

系统主题