admin管理员组

文章数量:1616689

你是说重装系统后才有的! 还是~!   试试这个吧!

我这有三个,把这些代码放到记事本中 在保存 把后缀名改成bat就行了!

第一个:

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

第二个:

@echo off echo 清空IE临时文件目录...del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等...del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mprem .log大部分有可能有用rem del /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.old

echo 清空垃圾箱,备份文件和预缓存脚本...del /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\temp

rem cooke和最近历史还是保留吧...rem del /f /q %userprofile%\COOKIES s\*.*rem del /f /q %userprofile%\recent\*.*

echo 清理系统盘无用文件...%windir%\system32\sfc.exe /purgecache

echo 优化预读信息...%windir%\system32\defrag.exe %systemdrive% -b

echo 清除系统完成!

echo. & pause

第三个:

@echo offcolor 1bTitle 系统垃圾文件清理器echo.echo.echo    本程序特点echo.echo    由于大多人把IE缓存等文件夹转移到非系统盘,echo    所以,本程序清理垃圾文件时,会先进行判断系echo    统的设置。echo.echo    清理优点:清理位置非常准确,策略更加科学。echo.echo  开始执行清理……echo.echo 正在检查cookies、历史纪录等目录位置(当前用户)……reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders" /v Cache>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders" /v Cookies>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders" /v History>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders" /v NetHood>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders" /v Recent>>%temp%\cleantmp.txtecho 正在清理Cookies、IE缓存、历史纪录等(当前用户)……for /f "tokens=3*" %%a in (%temp%\cleantmp.txt) do (  for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i"  del /a /f /s /q "%%a %%b\*.*")::和以上几项未必是重复的(!),也是对当前用户目录echo 正在清理临时文件 (系统目录)……del /a /f /s /q "%userprofile%\Locals~1\Tempor~1\*.*"del /a /f /s /q "%userprofile%\Locals~1\Temp\*.*"del /a /f /s /q "%userprofile%\cookies\*.*"del /a /f /s /q "%userprofile%\recent\*.*"del /a /f /s /q "%Temp%\*.*"del /a /f /s /q "%Tmp%\*.*"del /a /f /s /q "%HomePath%\..\IconCache.db"echo 正在清理系统目录中的垃圾文件 (稍候时间稍微长些)……del /a /f /s /q "%systemdrive%\*._mp"del /a /f /s /q "%systemdrive%\*.log"del /a /f /s /q "%systemdrive%\*.dmp"del /a /f /s /q "%systemdrive%\*.gid"del /a /f /s /q "%systemdrive%\*.old"del /a /f /s /q "%systemdrive%\*.tmp"del /a /f /s /q "%systemdrive%\recycled\*.*"del /a /f /s /q "%SystemRoot%\*.bak"del /a /f /s /q "%SystemRoot%\*.query"rd /s /q "%SystemRoot%\Downloaded Program Files"rd /s /q "%SystemRoot%\Offline Web Pages"rd /s /q "%systemroot%\Connection Wizard"rd /s /q "%SystemRoot%\SoftwareDistribution\Download"rd /s /q "%SystemRoot%\Assembly"rd /s /q "%SystemRoot%\Help"rd /s /q "%SystemRoot%\system32\ReinstallBackups"del /a /s /q "%SystemRoot%\inf\*.pnf"del /a /f /s /q "%SystemRoot%\inf\InfCache.1"dir %SystemRoot%\inf\*.* /ad/b >%SystemRoot%\vTmp.txtfor /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\inf\%%a"del /a /f /s /q "%SystemRoot%\Driver Cache\*.pnf"del /a /f /s /q "%SystemRoot%\Driver Cache\InfCache.1"del /a /f /s /q "%SystemRoot%\system32\drivers\*.pnf"del /a /f /s /q "%SystemRoot%\system32\drivers\InfCache.1"rd /s /q "%SystemRoot%\temp" & md "%SystemRoot%\temp"del /a /f /s /q "%SystemRoot%\Prefetch\*.*"del /a /f /s /q "%SystemRoot%\minidump\*.*"echo 正在清除无用的磁盘检错文件 (系统分区)……del /a /f /q "%SystemDrive%\*.chk"dir %SystemDrive%\found.??? /ad/b >%SystemRoot%\vTmp.txtfor /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemDrive%\%%a"echo 正在清理系统升级补丁留下来的反安装目录 (已修正能正确清除)……dir %SystemRoot%\$*$ /ad/b >%SystemRoot%\vTmp.txtfor /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\%%a"echo 正在清除常见的软件垃圾项目 (按默认目录)……rd /s /q "%ProgramFiles%\InstallShield Installation Information"Ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_Del "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe"Reg Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v

TkBellExe /frd /s /q "%ProgramFiles%\Tencent\QQGame\Download"taskkill /f /im "TIMPlatform.exe" /tdel /a /f /s /q "%ProgramFiles%\Kaspersky Lab\*.tmp"start C:\"Program Files"\"Internet Explorer"\"IEXPLORE.EXE"

echo 清除系统垃圾完成,

echo. & pause

希望能给您帮助!

本文标签: 机里东西文件电脑