电脑吧 Windows 7 Win7批处理器清除垃圾文件的方法

Win7批处理器清除垃圾文件的方法

win7电脑使用一段时间后会残留很多临时文件,这些垃圾文件会占用系统资源,影响电脑速度,下面就教大家Win7使用批处理器清除垃圾文件的方法。

一、新建一个txt文本文件;

Win7批处理器清除垃圾文件的方法

二、打开文本文件,输入以下内容:

@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 %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

Win7批处理器清除垃圾文件的方法

三、点击“文件”--“文件另存为”,文件名的结尾从txt改为bat,保存类型选择“所有文件”;

Win7批处理器清除垃圾文件的方法

本文来自网络,不代表电脑吧立场,转载请注明出处。

作者: yitu2008

上一篇
下一篇

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部