@echo off
::qq251485609
::清除系统垃圾修改版.txt
@cls
echo.
echo 计算机在使用的过程中,会有很多操作记录档案或是安装临时文件等,这些我们
echo.
echo 已经不需要了的文件,时间长了会越积越多,占据空间或影响速度。现在可运行自动
echo.
echo 清除!免去你手动出错的烦恼。随时保持一个清洁的系统!
echo.
echo.
@set /p FSYGJI= 是否确认清除?( Y/N )
@if "%FSYGJI%"=="N" goto EOF
cls
@echo off
echo.
echo 正在清除垃圾文件,请稍等......
echo ─────────────
Attrib -r -h -a -s %systemdrive%\*.tmp>nul 2>nul
del /f /s /q %systemdrive%\*.tmp>nul 2>nul
call :jdt
Attrib -r -h -a -s %systemdrive%\*._mp>nul 2>nul
del /f /s /q %systemdrive%\*._mp>nul 2>nul
call :jdt
Attrib -r -h -a -s %systemdrive%\*.gid>nul 2>nul
del /f /s /q %systemdrive%\*.gid>nul 2>nul
call :jdt
Attrib -r -h -a -s %systemdrive%\*.chk>nul 2>nul
del /f /s /q %systemdrive%\*.chk>nul 2>nul
call :jdt
Attrib -r -h -a -s %systemdrive%\*.old>nul 2>nul
del /f /s /q %systemdrive%\*.old>nul 2>nul
call :jdt
Attrib -r -h -a -s %systemdrive%\recycled\*.*>nul 2>nul
del /f /s /q %systemdrive%\recycled\*.*>nul 2>nul
call :jdt
Attrib -r -h -a -s %windir%\prefetch\*.*>nul 2>nul
del /f /s /q %windir%\prefetch\*.*>nul 2>nul
call :jdt
del /f /s /q %windir%\temp\*.*>nul 2>nul
call :jdt
Attrib -r -h -a -s "%userprofile%\Local Settings\Temporary Internet Files\*.*">nul 2>nul
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*">nul 2>nul
call :jdt
Attrib -r -h -a -s "%userprofile%\Local Settings\Temp\*.*">nul 2>nul
del /f /s /q "%userprofile%\Local Settings\Temp\*.*">nul 2>nul
call :jdt
Attrib -r -h -a -s "%userprofile%\recent\*.*">nul 2>nul
del /f /s /q "%userprofile%\recent\*.*">nul 2>nul
call :jdt
Attrib -r -h -a -s "%systemroot%\system32\spool\printers\*.*">nul 2>nul
del /f /s /q "%systemroot%\system32\spool\printers\*.*">nul 2>nul
call :jdt
Attrib -r -h -a -s "%systemroot%\Installer\*.MSP">nul 2>nul
del /f /s /q "%systemroot%\Installer\*.MSP">nul 2>nul
call :jdt
echo.
echo 清除系统垃圾文件已完成!
echo.
@echo
ping 127.1 /n 4 >nul
goto eof
:jdt
set /p a=■<nul
goto :eof
Last edited by ZJHJ on 2008-12-13 at 22:59 ]