注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

《电脑之家》

请点击:“日志”浏览电脑知识

 
 
 

日志

 
 

垃圾清理批处理  

2010-06-23 07:53:58|  分类: 电脑知识 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

@echo off
ECHO.标题
title=系统垃圾清理批处理,【自然醒博客空间提供】
echo.设置字体颜色为亮绿色,背景为蓝色。
color 9a
*0=黑、1=蓝、2=绿、3=浅绿、4=红、5=紫、6=黄、7=白、8=灰、9=淡蓝、A=淡绿、B=淡浅绿、C=淡红、D=淡紫、E=淡黄、F=亮白-----------Add by L.M.Zhang*
echo.下面是可用的变量
Set ProgFile=c:\Program Files
Set CurUser=c:\Documents and Settings\Administrator
Set AllUser=c:\Documents and Settings\All Users
set tm1=%time:~0,2%
set tm2=%time:~3,2%
set tm3=%time:~6,2%
ECHO. 清屏
CLS.
ECHO.
ECHO.
echo. 欢迎使用系统垃圾清理批处理(自然醒空间提供)
ECHO.
ECHO.
ECHO.
ECHO.╭════════════════════╮
ECHO.‖★危险系数声明★                        ‖
ECHO.‖因本脚本会清理回收站里面的内容,所以请在‖
ECHO.‖使用前仔细查看回收站并恢复误删除的文件。‖
ECHO.‖如被删除本人概不负责。特此警告~!       ‖
ECHO.‖                                        ‖
ECHO.‖                 ═════自然醒       ‖
ECHO.╰════════════════════╯
echo.

echo.自然醒准确为您报时:%DATE% %time%
echo.
echo. 按任意键.....
pause >nul
title=正在禁用文件保护...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MaxConnectionsPer1_0Server /t REG_DWORD /d 8 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MaxConnectionsPerServer /t REG_DWORD /d 8 /f
title=正在清理开始菜单下的无用衔接...
Del /a/f/s/q "%CurUser%\「开始」菜单\程序\Outlook Express.lnk
Del /a/f/s/q "%CurUser%\「开始」菜单\程序\附件\程序兼容性向导.url"
Del /a/f/s/q "%CurUser%\「开始」菜单\程序\附件\漫游 Windows XP.lnk"
title=正在删除造字程序...
Del /a/f/s/q "%CurUser%\「开始」菜单\程序\附件\TrueType 造字程序.lnk"
Del /a/f/s/q "c:\windows\system32\eudcedit.exe"
title=正在清理Cookies文件...
Del /a/f/s/q "%CurUser%\Cookies\*.*"
title=正在清理图表缓存文件...
Del /a/f/s/q "%CurUser%\Local Settings\Application Data\IconCache.db"
title=正在清理历史纪录...
Del /a/f/s/q "%CurUser%\Local Settings\History\*.*"
title=正在清理管理员账户下的无用快捷方式...
Del /a/f/s/q "%CurUser%\My Documents\My Pictures\示例图片.lnk"
Del /a/f/s/q "%CurUser%\My Documents\My Music\示例音乐.lnk"
title=正在清理访问过的网络邻居快捷方式...
Del /a/f/s/q "%CurUser%\NetHood\*.*"
title=正在清理未完成的打印任务...
Rd /s/q "%CurUser%\PrintHood"
title=正在清理最近打开的文档...
Rd /s/q "%CurUser%\Recent"
title=正在清理收藏夹内的垃圾衔接...
Del /a/f/s/q "%CurUser%\Favorites\MSN.com.url"
Del /a/f/s/q "%CurUser%\Favorites\电台指南.url"
Del /a/f/s/q "%CurUser%\Favorites\链接\Windows.url"
Del /a/f/s/q "%CurUser%\Favorites\链接\Windows Media.url"
Del /a/f/s/q "%CurUser%\Favorites\链接\免费 Hotmail.url"
Del /a/f/s/q "%CurUser%\Favorites\链接\自定义链接.url"
title=正在清理所有账户开式菜单下的无用快捷方式...
Del /a/f/s/q "%AllUser%\「开始」菜单\Windows Catalog.url"
Del /a/f/s/q "%AllUser%\「开始」菜单\Windows Update.lnk"
Del /a/f/s/q c:\windows\system32\wupdmgr.exe"
Del /a/f/s/q "%AllUser%\「开始」菜单\设定程序访问和默认值.lnk"
Del /a/f/s/q c:\windows\system32\control.exe
title=正在清理示例图片...
Rd /s/q "%AllUser%\Documents\My Pictures\示例图片"
title=正在清理示例音乐...
Del /a/f/s/q "%AllUser%\Documents\My Music\示例音乐\Beethoven's Symphony No. 9 (Scherzo).wma"
Del /a/f/s/q "%AllUser%\Documents\My Music\示例音乐\New Stories (Highway Blues).wma"
title=正在清理系统补丁卸载文件...
Rd /s/q "C:\WINDOWS\$*$"
For /f "delims=\" %%i in ('dir "c:\WINDOWS\$*$" /adh /b') do Rd /s/q "c:\WINDOWS\%%i"
title=正在清理系统带得不好看的鼠标指针...
Del /a/f/s/q "c:\WINDOWS\Cursors\*.*"
title=正在清理系统补丁生成的系统驱动备份...
Del /a/f/s/q "c:\windows\Driver Cache\i386\ntkrnlmp.exe"
Del /a/f/s/q "c:\windows\Driver Cache\i386\ntkrnlpa.exe"
Del /a/f/s/q "c:\windows\Driver Cache\i386\ntkrpamp.exe"
Del /a/f/s/q "c:\windows\Driver Cache\i386\ntoskrnl.exe"
title=正在清理下载程序文件夹...
Del /a/f/s/q "c:\WINDOWS\Downloaded Program Files\*.*"

DEL /F /Q /A -R -H -S -A C:\WINDOWS\system32\dllcache\SVOHOST.EXE
DEL /F /Q /A -R -H -S -A C:\WINDOWS\system32\dllcache\WINSCOK.DLL
@echo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo::删除每个分区下的SXS.EXE和AUTORUN.*文件,请稍侯...
@echo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
FOR %%a IN ( C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z: ) DO ATTRIB -R -H -S -A %%a\SXS.EXE & DEL /F /Q /A -R -H -S -A %%a\SXS.EXE & ATTRIB -R -H -S -A %%a\AUTORUN.* & DEL /F /Q /A -R -H -S -A %%a\AUTORUN.*
@echo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo::删除注册表中自启动项,请稍侯...
@echo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ECHO Windows Registry Editor Version 5.00>SoundMam.reg
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SoundMam]>>SoundMam.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>SoundMam.reg
ECHO "SoundMam"=->>SoundMam.reg
REGEDIT /S SoundMam.reg
DEL /F /Q SoundMam.reg
REGEDIT /S SHOWALL.reg
DEL /F /Q SHOWALL.reg
title=正在清除“下载器”病毒,请稍等......
Del /a/f/s/q c:\windows\system32\realplayer.exe
Del /a/f/s/q c:\windows\system32\brlmon.dll
Del /a/f/s/q c:\windows\system32\ravmon.dll
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v Realplayer.exe /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v Realplayer.exe /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft NT" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RunDown" /f
title=正在清理清理所有多余的启动项目...
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /va /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v ctfmon.exe /d C:\WINDOWS\system32\ctfmon.exe
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v item /d IMJPMIG
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v command /d "C:\WINDOWS\system32\IME\TINTLGNT\TINTSETP.EXE /IMEName"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Del /a/f/s/q "%AllUser%\「开始」菜单\程序\启动\*.*" /q /f
Del /a/f/s/q "%CurUser%\「开始」菜单\程序\启动\*.*" /q /f
Del /a/f/s/q "%userprofile%\「开始」菜单\程序\启动\*.*" /q /f
Del "C:\Documents and Settings\Default User\「开始」菜单\程序\启动\*.*" /q /f
title=正在清理清理注册表最后一次访问位置...
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v "LastKey" /t "REG_SZ" /d "我的电脑" /f
cls
title=正在清理清理注册表中的程序运行记录...
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f
title=正在清理临时文件夹...
Del /a/f/s/q "%CurUser%\Local Settings\Temp\*.*"
Del /a/f/s/q "%CurUser%\Local Settings\Temporary Internet Files\*.*"
Del /a/f/s/q "%userprofile%\Local Settings\Temp\*.*"
Del /a/f/s/q "%userprofile%\Temporary Internet Files\*.*"
Del /a/f/s/q "%AllUser%\Templates\*.*"
Del /a/f/s/q "c:\WINDOWS\temp\*.*"
title=正在清理其它系统垃圾
Del /a/f/s/q "c:\*.tmp"
Del /a/f/s/q "c:\*._mp"
Del /a/f/s/q "c:\*.log"
Del /a/f/s/q "c:\*.gid"
Del /a/f/s/q "c:\*.chk"
Del /a/f/s/q "c:\*.old"
Del /a/f/s/q "c:\windows\*.bak"
Rd /s/q "c:\WINDOWS\assembly
del /f /s /q "c:\WINDOWS\SoftwareDistribution\Download\*.*
del /f /s /q C:\WINDOWS\system32\spool\drivers\w32x86\3\*.*
del /f /s /q C:\WINDOWS\system32\*.tmp
del /f /s /q C:\WINDOWS\system32\*._mp
del /f /s /q C:\WINDOWS\system32\*.log
del /f /s /q C:\WINDOWS\system32\*.gid
del /f /s /q C:\WINDOWS\system32\*.chk
del /f /s /q C:\WINDOWS\system32\*.old
del /f /s /q C:\WINDOWS\system32%\recycled\*.*
ECHO.=====以下内容是一些常见软件目录清理内容====
title=正在清理360安全卫士系统补丁目录...
Rd /s/q "%ProgFile%\360Safe\hotfix"
title=正在清理 极点五笔 目录...
Rd /s/q "%CurUser%\「开始」菜单\程序\freeime"
Del /a/f/s/q "%ProgFile%\freeime\freeime.htm"
Del /a/f/s/q "%ProgFile%\freeime\极点五笔 纪念版.url"
Del /a/f/s/q "%ProgFile%\freeime\*.gif"
Del /a/f/s/q "%ProgFile%\freeime\*.txt"
Rd /s/q "%ProgFile%\freeime\skin\Apple_Z"
Rd /s/q "%ProgFile%\freeime\skin\bear2"
Rd /s/q "%ProgFile%\freeime\skin\Elegant"
Rd /s/q "%ProgFile%\freeime\skin\IF_Taiji"
Rd /s/q "%ProgFile%\freeime\skin\time"
Rd /s/q "%ProgFile%\freeime\skin\du"
Rd /s/q "%ProgFile%\freeime\skin\huan"
Rd /s/q "%ProgFile%\freeime\skin\Tango NightXP"
Rd /s/q "%ProgFile%\freeime\skin\youxihou"
Rd /s/q "%ProgFile%\freeime\skin\blueness"
Rd /s/q "%ProgFile%\freeime\skin\Hello Kitty"
Rd /s/q "%ProgFile%\freeime\skin\MG_S"
Rd /s/q "%ProgFile%\freeime\skin\VistaHeiMini"
title=正在清理 WINRAR 目录...
Del /a/f/q "%ProgFile%\WinRAR\*.diz"
Del /a/f/q "%ProgFile%\WinRAR\*.txt"
Del /a/f/q "%ProgFile%\WinRAR\*.chm"
Del /a/f/q "%ProgFile%\WinRAR\*.htm"
title=正在清理暴风影音目录...
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.txt
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.ini
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.dat
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\GSpot.exe
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\StormSet.exe
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\Codecs\languages\ffdshow.1033.en
Rd /s/q "%AllUser%\Application Data\Storm\Update
Rd /s/q "%AllUser%\「开始」菜单\程序\暴风影音
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\CoreVideo.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime3GPP.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeAudioSupport.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeEssentials.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeH264.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeInternetExtras.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeMPEG4.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreaming.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreamingExtras.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeVR.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeWebHelper.Resources\en.lproj
title=正在清理 RealPlayer 目录...
Del /a/f/q "%ProgFile%\Real\RealPlayer\Setup\setup.exe"
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.chm
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.txt
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.html
title=正在清理 迅雷 目录...
Del /a/f/s/q "%ProgFile%\Thunder Network\Thunder\Program\Update\*.*"
title=正在清理清理ACDSee目录...
Rd /s/q "%CurUser%\Application Data\ACD Systems
Del /a/f/s/q "%ProgFile%\ACDSee\*.hlp"
Del /a/f/s/q "%ProgFile%\ACDSee\*.cnt"
Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.hlp
Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.chm
title=正在清理清理超级兔子注册表备份...
Rd /s/q "c:\WINDOWS\MAGICSET"
ECHO.=====以上内容是一些常见软件目录清理内容====
ECHO. 清屏
CLS.
ECHO.
title=系统垃圾清理完成于:%date% %tm1%点%TM2%分%TM3%秒 o(∩_∩)o...
ECHO.
ECHO.
echo. 系统垃圾清批处理(自然醒博客空间提供)
ECHO.
ECHO.╭════════════════════╮
ECHO.‖                                        ‖
ECHO.‖★感谢使用★                            ‖
ECHO.‖                                        ‖
ECHO.‖ 本人空间收藏、整理了大量的关于DOS和批处‖
ECHO.‖                                        ‖
ECHO.‖理方面内容和实例,希望对研究这方面内容的‖
ECHO.‖                                        ‖
ECHO.‖网友有所帮助!                          ‖
ECHO.‖                   -----自然醒          ‖
ECHO.‖                                        ‖
ECHO.‖ ╭═════════════════╮ ‖
ECHO.‖ ‖    可以在下面设置自己的超链接    ‖ ‖               
ECHO.‖ ╰═════════════════╯ ‖                     
ECHO.╰════════════════════╯                       
echo.
echo. 按【Q】键 退出脚本。
echo.
echo. 按【G】键 到自然醒的Blog做客!
echo.
echo.
:cho
set choice=
set /p choice= 请敲击相关按键,敲击回车后执行
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%
if /i "%choice%"=="Q" goto EXIT
if /i "%choice%"=="G" goto abc
echo 选择无效,请重新输入
pause >nul
goto abc
:abc
title=跳转到abc的Blog
start http://aaa627903563.blog.163.com
title=退出脚本...
goto EXIT
:EXIT
title=脚本退出成功...
exit

使用方法:

1:复制上面代码粘贴到自己的记事本里面。

2:点文件(F)---另存为(A)---保存在(I)桌面---文件名(N): 自制软件.bat

3:点击桌面上的“自制软件”图标,自动实现网络急速狂飙。

备注:本空间强力推荐网友使用该批处理“自制软件”,以此实现网络提速!


超值实用: “一键”网速狂飙

  评论这张
 
阅读(1451)| 评论(24)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017