快捷搜索:  汽车  科技

一键清理垃圾文件bat不见了(Windows一键清理bat)

一键清理垃圾文件bat不见了(Windows一键清理bat)del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.log echo 正在清理系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp

1、新建一个txt文件

一键清理垃圾文件bat不见了(Windows一键清理bat)(1)

txt记事本

2、在记事本中填入下面代码

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

3、把记事本的后缀改成bat

4、双击运行

猜您喜欢: