系统垃圾清理BAT教程
win10清理系统垃圾win10手动清理系统垃圾方法

win10清理系统垃圾win10手动清理系统垃圾方法
1、首先确保自己的电脑已经升级到win10系统,并且是正常激活状态;
2、鼠标右键新建一记事本文件,并命名为【垃圾清理.t某t】;
3、打开记事本文件,然后再里面贴上代码
中括弧里面的,不要带中括弧。
4、然后保存文件,修改文件名的后缀为“bat”,然后蹦出提示框,
点击“是”,就把清理垃圾的批处理文件,建立好了;
5、鼠标左键,双击该清理垃圾的批处理文件,弹出DOS界面,提示“正在清理系统垃圾文件,请稍等...”
6、根据电脑中垃圾文件多与少,等待的时间也不相同,在过程中,
可以看到清理的一些系统文件;
7、在清理完系统垃圾文件之后(一般稍等一会),最下面一行会有提
示“清理系统LJ完成!请按任意键继续”,随便点一键盘键位,就可以退
出对话框了。
注意事项
在上述第三步骤,粘贴命令代码的时候,一定不要把中括弧粘贴进去。
清理完系统垃圾之后,垃圾箱里面的文件是清理不了的,建议手动清
理一下。
以上就是win10清理系统垃圾方法介绍,操作很简单的,大家按照上
面步骤进行操作即可,希望能对大家有所帮助!
看了“win10手动清理系统垃圾方法”还想看:
1.win10如何清理系统垃圾
2.如何清理win10系统垃圾
3.win10怎样清理系统垃圾
4.Win10如何一键清理系统文件
5.Window系统自带清理工具cleanmgr的使用教程。
win7最新版bat垃圾清理

@echo offcolor 0atitle 清理win7系统垃圾---echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo.★☆☆★echo.★☆☆★echo.★☆☆★echo ★☆正在清除系统垃圾文件,请稍等..... ☆★echo.★☆☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo 清理垃圾文件,速度由电脑文件大小而定。
在没看到结尾信息时echo 请勿关闭本窗口。
echo 正在清除系统垃圾文件,请稍后.....color 0aecho 删除补丁备份目录RD %windir%\$hf_mig$ /Q /Secho 把补丁卸载文件夹的名字保存成2950800.txtdir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txtecho 从2950800.txt中读取文件夹列表并且删除文件夹for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /qecho 删除2950800.txtdel %windir%\2950800.txt /f /qecho 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)del %windir%\KB*.log /f /qecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*.tmpecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*._mpecho 删除系统盘目录下日志文件del /f /s /q %systemdrive%\*.logecho 删除系统盘目录下GID文件(属于临时文件,具体作用不详)del /f /s /q %systemdrive%\*.gidecho 删除系统目录下scandisk(磁盘扫描)留下的无用文件del /f /s /q %systemdrive%\*.chkecho 删除系统目录下old文件del /f /s /q %systemdrive%\*.oldecho 删除回收站的无用文件del /f /s /q %systemdrive%\recycled\*.*echo 删除系统目录下备份文件del /f /s /q %windir%\*.bakecho 删除应用程序临时文件del /f /s /q %windir%\prefetch\*.*echo 删除系统维护等操作产生的临时文件rd /s /q %windir%\temp & md %windir%\tempecho 删除当前用户的COOKIE(IE)del /f /q %userprofile%\cookies\*.*echo 删除internet临时文件del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"echo 删除当前用户日常操作临时文件del /f /s /q "%userprofile%\local settings\temp\*.*"echo 删除访问记录(开始菜单中的文档里面的东西)del /f /s /q "%userprofile%\recent\*.*"echocolor 0f@echo offcolor 0aecho ================================================================== echo.echo 您已启动WIN 7 系统垃圾清理,这里运行的命令都很安全!echo.echo ================================================================== echo.echo 在程序没有结束的信息时,请勿关闭本窗口!echo.echo ================================================================== echo.echo 正在清除系统垃圾文件,请稍后......echo.echo ================================================================== echo.echo **********************************echo.echo 第一echo 删除临时文件echo.echo **********************************echo.del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mprd /s /q %windir%\temp & md %windir%\tempdel /f /s /q "%userprofile%\local settings\temp\*.*"del /f /s /q %windir%\prefetch\*.*echo.echo **********************************echo.echo 第二echo 删除日志文件echo 删除帮助索引文件echo 删除磁盘扫描留下的临时文件echo 删除备份文件echo 删除旧备份文件echo.echo **********************************echo.del /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %windir%\*.bakdel /f /s /q %systemdrive%\*.oldecho.echo **********************************echo.echo 第三echo 清空回收站echo.echo **********************************echo.del /f /s /q c:\$recycle.bin\*.*del /f /s /q d:\$recycle.bin\*.*del /f /s /q e:\$recycle.bin\*.*del /f /s /q f:\$recycle.bin\*.*del /f /s /q g:\$recycle.bin\*.*echo.echo **********************************echo.echo 第四echo 删除自动更新后留下的软件echo.echo **********************************echo.rd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Downloadecho.echo **********************************echo.echo 第五echo 删除上网产生的Cookiesecho.echo **********************************echo.del /f /q “%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*”echo.echo **********************************echo.echo 第六echo 删除上网产生的临时文件echo.echo **********************************echo.del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" echo.echo **********************************echo.echo 第七echo 运行私隐保护echo.echo **********************************echo.del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"echo.echo ================================================================== echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆☆★echo.★☆☆★echo.★☆☆★echo ★☆☆★echo ★☆清理全部完成☆★echo.★☆☆★echo ★☆☆★echo.★☆☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★=====================按任意键关闭======================== echo.echo. & pause请复制以上内容于文本文档中,设为批处理文件(.bat)。
自制一键清理系统垃圾bat

自制一键清理系统垃圾bat大多数人都知道随着电脑使用时间边长,电脑中积累的垃圾文件会越来越多。
通过安全软件来清除电脑中的垃圾是不错的方法,但是对于部分喜欢“轻量”应用的用户来说能够轻松一键的清理电脑垃圾是最理想的操作。
在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。
特别是如果一段时间不清理IE的临时文件夹“TemporaryInternetFiles”,其中的缓存文件有时会占用上百MB的磁盘空间。
这些LJ文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。
这点相信你肯定忍受不了吧!所以应及时清理系统的LJ文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!朋友来吧,现在就让我们一起来快速清除系统垃圾吧!!下面是步骤很简单就两步!在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去,点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。
记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。
复制下面代码粘贴到笔记本上:@echo offecho 《清理垃圾文件》echo 正在清理系统垃圾文件,请稍等……echo 删除文件或目录:%systemdrive%\*.tmpdel /f /s /q “%systemdrive%\*.tmp”echo 删除文件或目录:%systemdrive%\*._mpdel /f /s /q“%systemdrive%\*._mp”echo 删除文件或目录:%systemdrive%\*.giddel /f /s /q“%systemdrive%\*.gid”echo 删除文件或目录:%systemdrive%\*.chkdel /f /s /q“%systemdrive%\*.chk”echo 删除文件或目录:%systemdrive%\*.olddel /f /s /q“%systemdrive%\*.old”echo 删除文件或目录:%systemdrive%\recycled\*.*del /f /s /q“%systemdrive%\recycled\*.*”echo 删除文件或目录:%windir%\*.bakdel /f /s /q “%windir%\*.bak”echo 删除文件或目录:%windir%\prefetch\*.*del /f /s /q“%windir%\prefetch\*.*”echo 删除文件或目录:%windir%\temprd /s /q “%windir%\temp” & md “%windir%\temp”echo 删除文件或目录:%userprofile%\cookies\*.*del /f /q“%userprofile%\cookies\*.*”echo 删除文件或目录:%userprofile%\recent\*.*del /f /q“%userprofile%\recent\*.*”echo 删除文件或目录:%userprofile%\Local Settings\Temporary Internet Files\*.*del /f /s /q “%userprofile%\Local Settings\Temporary Internet Files\*.*”echo 删除文件或目录:%userprofile%\Local Settings\Temp\*.*del /f /s /q “%userprofile%\Local Settings\Temp\*.*”echo 删除文件或目录:%userprofile%\recent\*.*del /f /s /q“%userprofile%\recent\*.*”echo. & echo 清理垃圾文件完成,按任意键结束。
超级一键删除垃圾(保持WINDOWS系统苗条)

超级一键删除垃圾.bat将下面双横线下的内容保存为文本文件“超级一键删除垃圾.txt ”(如果看不见后缀,在文件夹所在的窗口依次点击:工具---文件夹选项---查看,把“隐藏已知文件类型的扩展名”前的勾去掉,确定后就能看见后缀),再将文件后缀改为“超级一键删除垃圾.bat ”,然后双击运行即可。
建议:最好是一周运行一次清理。
=================================================================== @echo off@ ECHO.@ ECHO.@ ECHO. 说 明@ ECHO -----------------------------------------------------------------------@ ECHO 这是网上流传的批处理。
它会帮您删除回收站、临时目录、最近打开过的文档痕迹 @ ECHO 等。
对系统运行稍有帮助。
但不能根治速度慢的问题。
电脑速度慢通常是因为太多 @ ECHO 无用的运算占据CPU 和内存资源所致,非删除一些文件就能解决。
建议装好系统后 @ ECHO 及时做Ghost 备份。
以后如果觉得运行不畅了,就恢复系统,这是最彻底的办法。
@ ECHO ——秦川秋月——@ ECHO -----------------------------------------------------------------------@ ECHO.pausecolor 0Atitle 历史痕迹兼系统垃圾清理 beta1.0::全盘删除Thumbs.db (缩略图缓存文件)@echo off&setlocal enabledelayedexpansionfor /f "delims=\" %%i in ('fsutil fsinfo drives^|find ""') do (set drive_=%%ifsutil fsinfo drivetype !drive_:~0,2!|find "固定">nul && del /a /f /q /s !drive_:~0,2!\Thumbs.db)echo 正在清理系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\*.tmpdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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\*.*"del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nuldel /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk">nul 2>nul::清理局域网共享痕迹reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\WorkgroupCrawler\Shares" /f >nul 2>nul::用户运行或操作历史记录reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\Folder" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.txt" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.rar"/va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.mp3" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.jpg" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.ini" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.bmp" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.doc" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.eip" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.htm" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.ico" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.inf" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.gif" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.wav" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.xls" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.rm"/va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\LastVisitedMRU" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\*" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\mp3" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\htm" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\ComDlg32\OpenSaveMRU\jpg" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RunMRU" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\StreamMRU" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A1 2B-00AA004AE837}\Count" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\UserAssist\{75048700-EF1F-11D0-988 8-006097DEACF9}\Count" /va /f >nul 2>nulreg delete "HKCU\Software\WinRAR\ArcHistory" /va /f >nul 2>nulreg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f >nul 2>nulreg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Microsoft Management Console\Recent File List" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Recent File List" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Office\11.0\Excel\Recent File" /va /f >nul 2>nulreg delete "HKCU\Software\Microsoft\Office\11.0\Word\Data" /v "Settings" /f >nul 2>nulreg delete "HKCU\Software\VMware, Inc." /va /f >nul 2>nul::清理IE浏览历史的下拉列表reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedUrls" /va /f >nul 2>nulecho 清理系统垃圾完成!echo. & pause。
系统垃圾清理程序增强版(.bat文件)

系统垃圾清理程序增强版(.bat文件)复制以下代码到记事本程序窗口,另存为.bat文件即可:@echo off::系统垃圾清理程序增强版color 2fTitle echo.echoecho.echo 开始执行清理……echo.echo 正在检查cookies、历史纪录等目录位置(当前用户)……reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\S hell Folders" /v Cache>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\S hell Folders" /v Cookies>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\S hell Folders" /v History>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\S hell Folders" /v NetHood>>%temp%\cleantmp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\S hell 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.txt for /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"echo.echo 全部清理完毕,任意键退出(注: 若提示文件没找到是正常的)……pause >nuldel %SystemRoot%\vTmp.txt。
一键自动清理垃圾代码

一键自动清理垃圾代码一键自动清理垃圾代码新建文本文档,把以下代码复制到文本文档,保存为“.bat”格式。
就可以啦@echo offcolor 0Atitle 历史痕迹兼系统垃圾清理 beta1.0::全盘删除Thumbs.db(缩略图缓存文件)@echo off&setlocal enabledelayedexpansionfor /f "delims=\\" %%i in ('fsutil fsinfo drives^|find ""') do (set drive_=%%ifsutil fsinfo drivetype !drive_:~0,2!|find "固定">nul && del /a /f /q /s !drive_:~0,2!\\Thumbs.db)echo 正在清理系统垃圾文件,请稍等......del /f /s /q %systemdrive%\\*.tmpdel /f /s /q %systemdrive%\\*._mpdel /f /s /q %systemdrive%\\*.logdel /f /s /q %systemdrive%\\*.giddel /f /s /q %systemdrive%\\*.chkdel /f /s /q %systemdrive%\\*.olddel /f /s /q %systemdrive%\ecycled\\*.*del /f /s /q %windir%\\*.bakdel /f /s /q %windir%\\*.tmpdel /f /s /q %windir%\\prefetch\\*.*rd /s /q %windir%\emp & md %windir%\empdel /f /q %userprofile%\\cookies\\*.*del /f /q %userprofile%\ecent\\*.*del /f /s /q "%userprofile%\\Local Settings\\Temporary Internet Files\\*.*"del /f /s /q "%userprofile%\\Local Settings\\Temp\\*.*"del /f /s /q "%userprofile%\ecent\\*.*"del /f /q "%ALLUSERSPROFILE%\\Documents\\DrWatson\\*.*">nul 2>nul del /f /q "%USERPROFILE%\\Application Data\\Microsoft\\Office\\Recent\\*.lnk">nul 2>nul::清理局域网共享痕迹reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\WorkgroupCrawler\\Shares" /f >nul 2>nul::用户运行或操作历史记录reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\Folder" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.txt" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.rar" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.mp3" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RecentDocs\\.jpg" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.ini" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.bmp" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.doc" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.eip" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.htm" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.ico" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.inf" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.gif" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.wav" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RecentDocs\\.xls" /va /f >nul2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs\\.rm" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RecentDocs" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\LastVisitedMRU" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\*" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\mp3" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\m" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\wav" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\bat" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\exe" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\OpenSaveMRU\\eip" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\ico" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\htm" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\ComDlg32\\OpenSaveMRU\\jpg" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\RunMRU" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\StreamMRU" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\UserAssist\\{5E6AB780-7743-11CF-A12B-00AA004AE837}\\Count" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explor er\\UserAssist\\{75048700-EF1F-11D0-9888-006097DEACF9}\\Count" /va /f >nul 2>nulreg delete "HKCU\\Software\\WinRAR\\ArcHistory" /va /f >nul 2>nulreg delete "HKCU\\Software\\WinRAR\\DialogEditHistory\\ArcName" /va /f >nul 2>nulreg delete"HKCU\\Software\\WinRAR\\DialogEditHistory\\ExtrPath" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\MediaPlayer\\Player\\RecentFileLi st" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Microsoft Management Console\\Recent File List" /va /f >nul 2>nul reg delete "HKCU\\Software\\Microsoft\\Office\\11.0\\PowerPoint\\Recent File List" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Office\\11.0\\Excel\\Recent File" /va /f >nul 2>nulreg delete "HKCU\\Software\\Microsoft\\Office\\11.0\\Word\\Data" /v "Settings" /f >nul 2>nulreg delete "HKCU\\Software\\VMware, Inc." /va /f >nul 2>nul::清理IE浏览历史的下拉列表reg delete "HKCU\\Software\\Microsoft\\Internet Explorer\\TypedUrls" /va /f >nul 2>nulecho.。
XP、Win7通用终极垃圾清理bat

@echo offecho 在程序没有结束的信息时,请勿关闭本窗口!title 清除系统垃圾!echo 正在清除系统垃圾,请稍等......@echo 删除没用的系统垃圾...sfc /purgecache S v{n?B Yqsfc /purgecache t.28I HJsfc /purgecache VUZeC,FfOdel c:\Thumbs.db /f/s/q/adel d:\Thumbs.db /f/s/q/adel e:\Thumbs.db /f/s/q/adel f:\Thumbs.db /f/s/q/adel /f /s /q %systemroot%\driver cache/i386/Driver.cabdel /f /s /q %systemroot%\Temp\*.*del /f /s /q %systemroot%\ServicePackFiles\*.*del /f /s /q %systemroot%\SoftWareDistribution\download\*.*del /f /s /q %systemroot%\System32\dllcache\*.*del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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\*.*"del /f /s /q c:\*.tmpdel /f /s /q c:\*.~*del /f /s /q c:\*.??~del /f /s /q c:\*.ftgdel /f /s /q c:\*.$$$del /f /s /q c:\*.giddel /f /s /q c:\*.chkdel /f /s /q c:\*.olddel /f /s /q d:\*.tmpdel /f /s /q d:\*._mpdel /f /s /q d:\*.~*del /f /s /q d:\*.??~del /f /s /q d:\*.ftgdel /f /s /q d:\*.$$$del /f /s /q d:\*.giddel /f /s /q d:\*.chkdel /f /s /q d:\*.olddel /f /s /q e:\*.tmpdel /f /s /q e:\*._mpdel /f /s /q e:\*.~*del /f /s /q e:\*.??~del /f /s /q e:\*.ftgdel /f /s /q e:\*.$$$del /f /s /q e:\*.giddel /f /s /q e:\*.chkdel /f /s /q e:\*.olddel /f /s /q f:\*.tmpdel /f /s /q f:\*._mpdel /f /s /q f:\*.~*del /f /s /q f:\*.??~del /f /s /q f:\*.ftgdel /f /s /q f:\*.$$$del /f /s /q f:\*.giddel /f /s /q f:\*.chkdel /f /s /q f:\*.oldrd /s /q “%windir%\temp\*.*"del /f /s /q "%userprofile%\Local Settings\Temp\*.*"del /f /s /q "%systemdrive%\recycled\*.*"del /f /s /q "%windir%\prefetch\*.*"del /f /s /q "%userprofile%\cookies\*.*"del /f /s /q "%userprofile%\recent\*.*" /del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.jpg"del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.gif"del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.jpg"del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.vbs"del /f /s /q c:\$recycle.bin\*.*del /f /s /q d:\$recycle.bin\*.*del /f /s /q e:\$recycle.bin\*.*del /f /s /q f:\$recycle.bin\*.*RD %windir%\$hf_mig$ /Q /Sdir %windir%\$NtUninstall/a:d /b >%windir%\Patches.txtfor /f %%i in (%windir%\Patches.txt) do rd %windir%\%%i /s /qdel %windir%\Patches.txt /f /qrd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Downloaddel /f /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"del c:\winnt\logo1_.exedel c:\windows\logo1_.exedel c:\winnt\0sy.exedel c:\windows\0sy.exedel c:\winnt\1sy.exedel c:\windows\1sy.exedel c:\winnt\2sy.exedel c:\windows\2sy.exedel c:\winnt\3sy.exedel c:\windows\3sy.exedel c:\winnt\4sy.exedel c:\windows\4sy.exedel c:\winnt\5sy.exedel c:\windows\5sy.exedel c:\winnt\6sy.exedel c:\windows\6sy.exedel c:\winnt\7sy.exedel c:\windows\7sy.exedel c:\winnt\8sy.exedel c:\windows\8sy.exedel c:\winnt\9sy.exedel c:\windows\9sy.exedel c:\winnt\rundl132.exedel c:\windows\rundl132.exedel e:\winnt\logo1_.exedel e:\windows\logo1_.exedel e:\winnt\0sy.exedel e:\windows\0sy.exedel e:\winnt\1sy.exedel e:\windows\1sy.exedel e:\winnt\2sy.exedel e:\windows\2sy.exedel e:\winnt\3sy.exedel e:\windows\3sy.exedel e:\winnt\4sy.exedel e:\windows\4sy.exedel e:\winnt\5sy.exedel e:\windows\5sy.exedel e:\winnt\6sy.exedel e:\windows\6sy.exedel e:\winnt\7sy.exedel e:\windows\7sy.exedel e:\winnt\8sy.exedel e:\windows\8sy.exedel e:\winnt\9sy.exedel e:\windows\9sy.exedel e:\winnt\rundl132.exe del e:\windows\rundl132.exe net share c$ /dnet share d$ /dnet share e$ /dnet share F$ /dnet share G$ /dnet share h$ /dnet share i$ /dnet share j$ /dnet share admin$ /dnet share ipc$ /ddel c:\winnt\logo1_.exedel c:\windows\logo1_.exe del c:\windows\vdll.dlldel c:\winnt\vdll.dlldel c:\windows\tdll.dlldel c:\winnt\tdll.dlldel c:\windows\dll.dlldel c:\winnt\dll.dlldel c:\winnt\kill.exedel c:\windows\kill.exedel c:\winnt\sws32.dlldel c:\windows\sws32.dll del c:\winnt\rundl132.exe del c:\windows\rundl132.exe del e:\winnt\logo1_.exedel e:\windows\logo1_.exe del e:\windows\vdll.dlldel e:\winnt\vdll.dlldel e:\windows\tdll.dlldel e:\winnt\tdll.dlldel e:\windows\dll.dlldel e:\winnt\dll.dlldel e:\winnt\kill.exedel e:\windows\kill.exedel e:\winnt\sws32.dlldel e:\windows\sws32.dll del e:\winnt\rundl132.exedel e:\windows\rundl132.exeif exist "%windir%\*.log" del /f /s /q "%windir%\*.log" 2>nulif exist "%systemdrive%\*.log" del /f /s /q "%systemdrive%\*.log" 2>nulif exist "%systemdrive%\*.tmp" del /f /s /q "%systemdrive%\*.tmp" 2>nulif exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nulif exist "%systemdrive%\*.gid" del /f /s /q "%systemdrive%\*.gid" 2>nulif exist "%systemdrive%\*.chk" del /f /s /q "%systemdrive%\*.chk" 2>nulif exist "%systemdrive%\*.old" del /f /s /q "%systemdrive%\*.old" 2>nulif exist "%systemdrive%\*.ftg" del /f /s /q "%systemdrive%\*.ftg" 2>nulif exist "%systemdrive%\*.fts" del /f /s /q "%systemdrive%\*.fts" 2>nulif exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nulif exist "%systemdrive%\*.syd" del /f /s /q "%systemdrive%\*.syd" 2>nulif exist "%systemdrive%\*.ms" del /f /s /q "%systemdrive%\*.ms" 2>nulif exist "%systemdrive%\*.diz" del /f /s /q "%systemdrive%\*.diz" 2>nulif exist "%systemdrive%\*.??$" del /f /s /q "%systemdrive%\*.??$" 2>nulif exist "%systemdrive%\*.??~" del /f /s /q "%systemdrive%\*.??~" 2>nulif exist "%systemdrive%\*.$$$" del /f /s /q "%systemdrive%\*.$$$" 2>nulif exist "%systemdrive%\*.~*" del /f /s /q "%systemdrive%\*.~*" 2>nulif exist "%systemdrive%\*.@@@" del /f /s /q "%systemdrive%\*.@@@" 2>nulif exist "%systemdrive%\recycled\*.*" del /f /s /q %systemdrive%\recycled\*.* 2>nulif exist "%windir%\*.bak" del /f /s /q %windir%\*.bak 2>nulif exist "%windir%\*.tmp" del /f /s /q %windir%\*.tmp 2>nulif exist "%windir%\SoftwareDistribution\Download\*.*" del /f /s /q %windir%\SoftwareDistribution\Download\*.* 2>nulif exist "%systemroot%\temp\*.*" del /a /f /s /q "%systemroot%\temp\*.*" 2>nulif exist "%systemroot%\Prefetch\*.*" del /a /f /s /q "%systemroot%\Prefetch\*.*" 2>nulif exist "%systemroot%\minidump\*.*" del /f /q /s /a "%systemroot%\minidump\*.*" 2>nulif exist "%systemroot%\*.dmp" del /a /f /s /q "%systemroot%\*.dmp" 2>nulif exist "%systemroot%\*.tmp" del /a /f /s /q "%systemroot%\*.tmp" 2>nulif exist "%systemroot%\*._mp" del /a /f /s /q "%systemroot%\*._mp" 2>nulif exist "%systemroot%\*.gid" del /a /f /s /q "%systemroot%\*.gid" 2>nulif exist "%systemroot%\*.bak" del /a /f /s /q "%systemroot%\*.bak" 2>nulif exist "%systemroot%\*.old" del /a /f /s /q "%systemroot%\*.old" 2>nulif exist "%systemroot%\*.query" del /a /f /s /q "%systemroot%\*.query" 2>nulrd /s /q %windir%\temp & md %windir%\tempif exist "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" 2>nulif exist "%userprofile%\recent\*.*" del /f /s /q "%userprofile%\recent\*.*" 2>nulif exist "%ALLUSERSPROFILE%\Documents\DrWatson\*.*" del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*" 2>nulif exist "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk" del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk" 2>nuldel %userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.dbecho 正在清理临时文件……for /d %%a in ("%temp%\*.*") do rd /s /q "%%a"del /a /f /s /q "%temp%\*.*" 2>nulfor /d %%a in ("%tmp%\*.*") do rd /s /q "%%a"del /a /f /s /q "%tmp%\*.*" 2>nuldel %userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.dbecho 正在清理系统升级补丁留下来的反安装目录……for /f "tokens=1" %%i in ('dir %SystemRoot%\$*$ /s /b /ad') do rd /s /q %%iecho 正在正在清理IE缓存、cookies、历史纪录等(当前用户)...reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>vtemp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>vtemp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>vtemp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>vtemp.txtreg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>vtemp.txtfor /f "tokens=3*" %%a in (vtemp.txt) do (for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i" 2>Nuldel /a /f /s /q "%%a %%b\*.*" del /q vtemp.txt 2>Nul)del %userprofile%\Local Settings\Temporary Internet Files\*.*echo 清除浏览器地址记录...reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedUrls" /f 2>nulREG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedUrls"echo 清除运行记录...reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f 2>nulREG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /v "MRUList" /t reg_sz /d "a" /ftitle 查杀病毒!echo. *****************************echo. 正在查毒...请不要关闭......echo. *****************************del c:\winnt\logo1_.exedel c:\windows\logo1_.exedel C:\winnt\system32\Logo1_.exedel C:\winnt\system32\rundl132.exedel C:\winnt\system32\bootconf.exedel C:\winnt\system32\kill.exedel C:\winnt\system32\sws32.dlldel C:\windows\Logo1_.exedel C:\windows\rundl132.exedel C:\windows\bootconf.exedel C:\windows\kill.exedel C:\windows\sws32.dlldel C:\windows\dll.dlldel C:\windows\vdll.dlldel c:\windows\tdll.dlldel C:\windows\system32\ShellExt\svchs0t.exedel C:\windows\system32\Logo1_.exedel C:\windows\system32\rundl132.exedel C:\windows\system32\bootconf.exedel C:\windows\system32\kill.exedel C:\windows\system32\sws32.dlldel e:\winnt\logo1_.exedel e:\windows\logo1_.exedel e:\winnt\system32\Logo1_.exedel e:\winnt\system32\rundl132.exedel e:\winnt\system32\bootconf.exedel e:\winnt\system32\kill.exedel e:\winnt\system32\sws32.dlldel e:\windows\Logo1_.exedel e:\windows\rundl132.exedel e:\windows\bootconf.exedel e:\windows\kill.exedel e:\windows\sws32.dlldel e:\windows\dll.dlldel e:\windows\vdll.dlldel e:\windows\tdll.dlldel e:\windows\system32\ShellExt\svchs0t.exedel e:\windows\system32\Logo1_.exedel e:\windows\system32\rundl132.exedel e:\windows\system32\bootconf.exedel e:\windows\system32\kill.exedel e:\windows\system32\sws32.dlldel c:\_desktop.ini /f/s/q/adel d:\_desktop.ini /f/s/q/adel e:\_desktop.ini /f/s/q/adel f:\_desktop.ini /f/s/q/adel "e:\Documents and Settings\All Users\「开始」菜单\程序\启动\*.*" /q /f del "e:\Documents and Settings\Default User\「开始」菜单\程序\启动\*.*" /q /f del "%userprofile%\「开始」菜单\程序\启动\*.*" /q /fecho =============================================================title 优化系统!sfc /purgecache '清理系统盘无用文件defrag %systemdrive% -b '优化预读信息title 结束!echo 优化系统完成!按任意键结束.... pause。
清理电脑垃圾的七个BAT文件

清理电脑垃圾的七个BAT文件qinai © 2007年3月2日网络资源 5751 次浏览第一招:清除系统垃圾轻松流畅上网你是否注意到你的电脑系统磁盘的可用空间正在一天天在减少呢?是不是像老去的猴王一样动作一天比一天迟缓呢?没错!在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。
特别是如果一段时间不清理IE的临时文件夹“Temporary Internet Files”,其中的缓存文件有时会占用上百MB的磁盘空间。
这些LJ文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。
这点相信你肯定忍受不了吧!所以应及时清理系统的LJ文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!朋友来吧,现在就让我们一起来快速清除系统垃圾吧!!下面是步骤很简单就两步!在桌面上点鼠标右键,选择新建一个“记事本”,把下面的字复制进去,点“另存为”,把文件名定为“清除系统LJ.bat”就完成,记住后缀名一定要是.bat,好ok了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。
PS. 要复制进去的字是见下(红色部分)@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause以后只要双击运行该文件,当屏幕提示“清除系统LJ完成!就还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?可别忘了回帖喔!注:LJ就是垃圾的意思!这招比那些所谓的优化大师好用!不会破坏系统文件。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
清理电脑垃圾的七个bat文件第一招:清除系统垃圾在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp*._mp)日志文件(*.log)临时帮助文件(*.gid)磁盘检查文件(*.chk)临时备份文件(如:*.old*.bak)以及其他临时文件特别是如果一段时间不清理IE的临时文件夹Temporary Internet Files,其中的缓存文件有时会占用上百MB的磁盘空间这些垃圾文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行缓慢下面是步骤很简单就两步!在桌面上点鼠标右键,选择新建一个记事本,把下面的字复制进去,点另存为,把文件名定为清除系统垃圾.bat就完成,记住后缀名一定要是.bat,好ok了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到PS. 要复制进去的字是见下(红色部分)@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause以后只要双击运行该文件,当屏幕提示清除系统LJ完成,系统就清理ok!第二招:清除所有多余的启动项目此命令将自动清理所有非必要的启动项目,仅保留输入法(ctfmon)目的是减少不必要的资源占用,使系统运行顺畅方法如上,复制内容见下(红色部分)@ ECHO OFFcolor 1ftitle 清除所有多余的启动项目PAUSEreg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /freg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /va /freg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v ctfmon.exe /d C:\WINDOWS\system32\ctfmon.exereg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg" /freg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1"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 HKLMreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v inimapping /d 0reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v item /d IMJPMIGreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Runreg 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 HKLMreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v inimapping /d 0reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v item /d TINTSETPreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Runreg 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"Tools\MSConfig\startupreg\PHIME2002ASync" /v hkey /d HKLMreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v inimapping /d 0reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v item /d TINTSETPreg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Rundel "C:\Documents and Settings\All Users\开始菜单\程序\启动\*.*" /q /fdel "C:\Documents and Settings\Default User\开始菜单\程序\启动\*.*" /q /fdel "%userprofile%\开始菜单\程序\启动\*.*" /q /fstart C:\WINDOWS\pchealth\helpctr\binaries\msconfig.exe第三招:清除所有多余的桌面右键菜单很多显卡在装了驱动之后,桌面右键会多出一项或多项菜单,这些功能并不实用,还会拖慢右键的弹出速度,我们最好清除它方法如上,复制内容见下(红色部分)@ ECHO OFFtitle 清除所有多余的桌面右键菜单color 1aPAUSEregsvr32 /u /s igfxpph.dllreg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers /freg add HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\new /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /vHotKeysCmds /freg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f第四招:C盘转换为NTFS格式NTFS格式是WinXP推荐使用的格式转换为NTFS格式能提高硬盘存储的效率,并可设置访问权限以保护文件但NTFS格式的分区在DOS/WIN9X下均不能被识别,可能会给初级用户造成不便如无必要请不要转换方法如上,复制内容见下(红色部分)@ ECHO OFFcolor 1btitle C盘转换为NTFS格式convert c:/fs:ntfs第五招:给每个盘添加卷标此命令将为本机每个盘都添加上卷标,一般是用在新机上面以引导初学者更合理地支配他们的硬盘空间方法如上,复制内容见下(红色部分)@ ECHO OFFtitle 给每个盘添加卷标color 1BPAUSEc:label c:WINXPlabel d:软件label e:影视label f:游戏label g:资料label h:备份d:md 本机驱动程序md 本机驱动程序\0.DirectXmd 本机驱动程序\1.主板芯片组md 本机驱动程序\2.显卡md 本机驱动程序\3.声卡md 本机驱动程序\4.网卡md 本机驱动程序\5.摄像头第六招:关闭有害端口提高安全性,让你上网更加无后顾之忧!!!第六招不让发了,太长,传个做好的上来试试!地址如下:/uploadfile/200612/595/BxkRUQYT.bat第七招:威金病毒批处理专杀威金病毒主要通过网络共享传播,病毒会感染电脑中所有的.EXE可执行文件,传播速度十分迅速威金病毒运行后,修改注册表自启动项,以使自己随系统一起运行,向系统文件目录下生成以下病毒文件:Program Files\svhost32.exeProgram Files\micorsoft\svhost32.exewindows\explorer.exewindows\logo1_exewindows\rundll32.exewindows\rundl132.exewindows\intel\rundl132.exewindows\dll.dll病毒新变种还会自动从网站下载天堂杀手以及QQ大盗(QQpass)等10余种木马病毒,企图盗取包括天堂征途梦幻西游传奇等多种流行网游以及QQ的帐号密码方法如上,复制内容见下(红色部分)@ECHO OFFdel c:\winnt\logo1_.exedel c:\windows\logo1_.exedel c:\winnt\0sy.exedel c:\windows\0sy.exedel c:\winnt\1sy.exedel c:\windows\1sy.exedel c:\winnt\2sy.exedel c:\windows\2sy.exedel c:\winnt\3sy.exedel c:\windows\3sy.exedel c:\winnt\4sy.exedel c:\windows\4sy.exedel c:\winnt\5sy.exedel c:\windows\5sy.exedel c:\winnt\6sy.exedel c:\windows\6sy.exedel c:\winnt\7sy.exedel c:\windows\7sy.exedel c:\winnt\8sy.exedel c:\windows\8sy.exedel c:\winnt\9sy.exedel c:\windows\9sy.exedel c:\winnt\rundl132.exe del c:\windows\rundl132.exe net share c$ /dnet share d$ /dnet share e$ /dnet share F$ /dnet share G$ /dnet share h$ /dnet share i$ /dnet share j$ /dnet share admin$ /dnet share ipc$ /ddel c:\winnt\logo1_.exedel c:\windows\logo1_.exedel c:\windows\vdll.dlldel c:\winnt\vdll.dlldel c:\windows\tdll.dlldel c:\winnt\tdll.dlldel c:\windows\dll.dlldel c:\winnt\dll.dlldel c:\winnt\kill.exedel c:\windows\kill.exedel c:\winnt\sws32.dlldel c:\windows\sws32.dlldel c:\winnt\rundl132.exedel c:\windows\rundl132.exeecho.echo.echo.echo. ***************************** echo.echo. 正在查毒...请不要关闭...... echo.echo. ***************************** echo.echo.echo.echo.ping 127.0.0.1 -n 5del c:\winnt\logo1_.exedel c:\windows\logo1_.exedel c:\windows\vdll.dlldel c:\winnt\vdll.dlldel c:\windows\dll.dlldel c:\winnt\dll.dlldel c:\windows\tdll.dlldel c:\winnt\tdll.dlldel c:\winnt\kill.exedel c:\windows\kill.exedel c:\winnt\sws32.dlldel c:\windows\sws32.dlldel c:\winnt\rundl132.exedel c:\windows\rundl132.exeecho.echo.echo.echo. ***************************** echo.echo. 正在查毒...请不要关闭...... echo.echo. ***************************** echo.echo.echo.echo.ping 127.0.0.1 -n 5del c:\winnt\logo1_.exedel c:\windows\logo1_.exedel c:\windows\vdll.dlldel c:\winnt\vdll.dlldel c:\windows\dll.dlldel c:\winnt\dll.dlldel c:\windows\tdll.dlldel c:\winnt\tdll.dlldel c:\winnt\kill.exedel c:\windows\kill.exedel c:\winnt\sws32.dlldel c:\windows\sws32.dlldel c:\windows\0sy.exedel c:\winnt\1sy.exedel c:\windows\1sy.exedel c:\winnt\2sy.exedel c:\windows\2sy.exedel c:\winnt\3sy.exedel c:\windows\3sy.exedel c:\winnt\4sy.exedel c:\windows\4sy.exedel c:\winnt\5sy.exedel c:\windows\5sy.exedel c:\winnt\6sy.exedel c:\windows\6sy.exedel c:\winnt\7sy.exedel c:\windows\7sy.exedel c:\winnt\8sy.exedel c:\windows\8sy.exedel c:\winnt\9sy.exedel c:\windows\9sy.exedel c:\winnt\rundl132.exe del c:\windows\rundl132.exe del C:\winnt\Logo1_.exe del C:\winnt\rundl132.exe del C:\winnt\bootconf.exedel C:\winnt\kill.exedel C:\winnt\sws32.dlldel C:\winnt\dll.dlldel C:\winnt\vdll.dlldel c:\winnt\tdll.dlldel C:\winnt\system32\ShellExt\svchs0t.exe del C:\Program Files\Internet Explorer\0SY.exe del C:\Program Files\Internet Explorer\1SY.exe del C:\Program Files\Internet Explorer\2sy.exe del C:\Program Files\Internet Explorer\3sy.exe del C:\Program Files\Internet Explorer\4sy.exe del C:\Program Files\Internet Explorer\5sy.exe del C:\Program Files\Internet Explorer\6SY.exe del C:\Program Files\Internet Explorer\7sy.exe del C:\Program Files\Internet Explorer\8sy.exe del C:\Program Files\Internet Explorer\9sy.exe del C:\winnt\system32\Logo1_.exedel C:\winnt\system32\rundl132.exedel C:\winnt\system32\bootconf.exedel C:\winnt\system32\kill.exedel C:\winnt\system32\sws32.dlldel C:\windows\Logo1_.exedel C:\windows\rundl132.exedel C:\windows\bootconf.exedel C:\windows\kill.exedel C:\windows\sws32.dlldel C:\windows\dll.dlldel C:\windows\vdll.dlldel c:\windows\tdll.dlldel C:\windows\system32\ShellExt\svchs0t.exe del C:\windows\system32\Logo1_.exedel C:\windows\system32\rundl132.exedel C:\windows\system32\bootconf.exedel C:\windows\system32\kill.exedel C:\windows\system32\sws32.dlldel c:\_desktop.ini /f/s/q/adel d:\_desktop.ini /f/s/q/adel e:\_desktop.ini /f/s/q/adel f:\_desktop.ini /f/s/q/adel g:\_desktop.ini /f/s/q/adel h:\_desktop.ini /f/s/q/adel i:\_desktop.ini /f/s/q/adel j:\_desktop.ini /f/s/q/adel k:\_desktop.ini /f/s/q/a。