Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

2023年 4月 26日 54.0k 0

  Win7系统的电脑在使用久了之后,会积累非常多的垃圾文件或数据,这个时候我们可以使用运行命令代码清理win7中的垃圾,那么Win7清理垃圾的运行代码是什么呢?下面就和小编一起来来看看吧。

  Win7清理垃圾的代码教程

  1、首先使用快捷键“win+R”打开运行窗口;

  2、输入命令“cleanmgr”,回车确定打开清理窗口;

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  3、选择想要扫描清理的磁盘,单击“确定”即可运行;

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  4、等待扫描完成;

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  5、弹出窗口中选择你想要清理的文件,单击下方“清理系统文件”即可清理完成;

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  6、右键桌面鼠标滑动到“新建”,单击选择“文本文档”;

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  7、打开记事本文本文档,粘贴以下命令,单击左上角“文件”,选择另存为,并修改名字为“一键清理.bat”:

  @echo off

  echo 正在清除系统垃圾文件,请稍等。。。。。。

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

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

  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%
ecycled*.*

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

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

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

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

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

  del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*”

  del /f /s /q “%userprofile%Local SettingsTemp*.*”

  del /f /s /q “%userprofile%
ecent*.*”

  echo 清除系统LJ完成!

  echo. & pause

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

  8、双击运行win7桌面上的“一键清理.bat”,等待其清理垃圾文件完成即可。

Win7清理垃圾的代码是什么?Win7清理垃圾代码的使用教程

相关文章

服务器端口转发,带你了解服务器端口转发
服务器开放端口,服务器开放端口的步骤
产品推荐:7月受欢迎AI容器镜像来了,有Qwen系列大模型镜像
如何使用 WinGet 下载 Microsoft Store 应用
百度搜索:蓝易云 – 熟悉ubuntu apt-get命令详解
百度搜索:蓝易云 – 域名解析成功但ping不通解决方案

发布评论