本批处理能够解决大多数的清楚垃圾文件玩意只能删除文件,但保留了一大堆空文件夹的弊端。
打开记事本,复制以下内容:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q "%systemdrive%\*.tmp"
del /f /s /q "%systemdrive%\*._mp"
del /f /s /q "%systemdrive%\*.gid"
del /f /s /q "%systemdrive%\*.chk"
del /f /s /q "%systemdrive%\*.old"
del /f /s /q "%windir%\*.log"
del /f /s /q "%windir%\*.bak"
del /f /s /q "%windir%\Prefetch\*.*"
del /f /s /q "%userprofile%\Cookies\*.*"
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
for /d %%i in ("%userprofile%\Local Settings\Temp\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
for /d %%i in ("%windir%\Temp\*") do @rd /s /q "%%i"
del /f /s /q "%windir%\Temp\*.*"
for /d %%i in ("%userprofile%\Recent\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\Recent\*.*"
for /d %%i in ("%userprofile%\NetHood\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\NetHood\*.*"
echo 清除系统LJ完成!
echo.
pause
再选择另存文件,文件名为“清除系统垃圾.bat”,保存类型改为“所有文件”,然后双击运行即可。
打开记事本,复制以下内容:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q "%systemdrive%\*.tmp"
del /f /s /q "%systemdrive%\*._mp"
del /f /s /q "%systemdrive%\*.gid"
del /f /s /q "%systemdrive%\*.chk"
del /f /s /q "%systemdrive%\*.old"
del /f /s /q "%windir%\*.log"
del /f /s /q "%windir%\*.bak"
del /f /s /q "%windir%\Prefetch\*.*"
del /f /s /q "%userprofile%\Cookies\*.*"
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
for /d %%i in ("%userprofile%\Local Settings\Temp\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
for /d %%i in ("%windir%\Temp\*") do @rd /s /q "%%i"
del /f /s /q "%windir%\Temp\*.*"
for /d %%i in ("%userprofile%\Recent\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\Recent\*.*"
for /d %%i in ("%userprofile%\NetHood\*") do @rd /s /q "%%i"
del /f /s /q "%userprofile%\NetHood\*.*"
echo 清除系统LJ完成!
echo.
pause
再选择另存文件,文件名为“清除系统垃圾.bat”,保存类型改为“所有文件”,然后双击运行即可。

