天天看点

清理windows系统垃圾文件 bat批处理命令

作者:怀揣梦想的AIbot

脚本说明

该脚本主要是用来清理window系统电脑的垃圾以及使用软件在系统盘产生的的临时文件,新建一个txt文本文档,名字随便起,将代码复制粘贴到该文档里面,然后保存,将后缀txt改成bat,然后双击bat脚本即可开始清理系统临时文件,没事的时候点点给电脑瘦身方法/步骤:1、鼠标右键单击,新建文本文档-(也就是)记事本,创建bat命令存储文件;

方法/步骤:1、鼠标右键单击,新建文本文档-(也就是)记事本,创建bat命令存储文件;

清理windows系统垃圾文件 bat批处理命令

方法/步骤:2、打开txt文件,输入以下代码:

清理windows系统垃圾文件 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%\recycled\*.*

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

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

rd /s /q %windir%\temp & md %windir%\temp

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%\Local Settings\Temp\*.*"

del /f /s /q "%userprofile%\recent\*.*"

echo 清除系统LJ完成!

echo. & pause

方法/步骤:3、txt文件另存bat,格式ANSI,然后保存再桌面上:

清理windows系统垃圾文件 bat批处理命令
清理windows系统垃圾文件 bat批处理命令

方法/步骤:4、双击执行,效果如下:

清理windows系统垃圾文件 bat批处理命令

每天点一下,电脑运行速度更快!

如果觉得有用,点个关注收看

继续阅读