windows下利用批处理清除系统垃圾文件

windows下利用批处理清除系统垃圾文件

应用案例:

利用批处理清除系统垃圾文件

1)打开“记事本或写字板”,输入以下内容:

@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 SettingsTemporary Internet Files*.*”

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

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

echo 清理系统垃圾完成!

echo. & pause

2)然后另存为.bat文件.

3)最后,直接双击这个批处理文件就可清楚系统的一些垃圾文件!!!

windows下利用批处理清除系统垃圾文件

相关文章:

你感兴趣的文章:

标签云: