一键清理c盘垃圾文件--bat文件

Posted relustarry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一键清理c盘垃圾文件--bat文件相关的知识,希望对你有一定的参考价值。

第一步:制作一键清理系统垃bat文件。在电脑桌面新建一个txt文本文档,将以下内容复制到txt文本文档里保存

@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 一键清理系统垃圾完成!

echo. & pause

第二步:将.txt后缀名修改为.bat文件,双击执行。

以上是关于一键清理c盘垃圾文件--bat文件的主要内容,如果未能解决你的问题,请参考以下文章