技术文章

了解最新公司动态及行业资讯

当前位置:首页>技术文章

一键清理系统垃圾文件.bat 清理系统垃圾命令

时间:2013-06-16   访问量:1186
 在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的代码复制进去,点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!
 
双击它就能很快地清理垃圾文件,大约一分钟不到。
======就是下面的文字(这行不用复制)=====
 
 
@echo off
color 3f
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\*.*”
 
del /f /s /q %systemdrive%\*.lrc
del /f /s /q %systemdrive%\*.lrcx
del /f /s /q %systemdrive%\*.krc
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%\*.syd
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 /s /q %windir%\temp\*.*”
del /f /s /q ”%appdata%\Microsoft\Windows\cookies\*.*”
del /f /q %userprofile%\recent\*.*”
del /f /s /q ”%userprofile%\Local Settings\Temporary Internet Files\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*”
del /f /s /q  ”%userprofile%\Local Settings\Temp\*.*”
del /f /s /q ”%userprofile%\recent\*.*”
del /f /s /q %windir%\SoftwareDistribution\Download\*.*”
del /f /s /q ”%appdata%\Microsoft\Windows\Recent\*.*”
rd /s /q ”%userprofile%\Local Settings\Temp\” & md ”%userprofile%\Local Settings\Temp\”
del /f /s /q ”%userprofile%\Application Data\PPStream\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\PPStream\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\TheWorld\data\*.*”
del /f /s /q ”%userprofile%\Application Data\PPLive\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\PPLive\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Microsoft\Windows\Explorer*.*”
del /f /s /q ”%windir%\Offline Web Pages*.*”
del /f /s /q ”%userprofile%\UpdateData\*.*”
del /f /s /q ”%userprofile%\Application Data\QQUpdate\*.*”
del /f /s /q ”%ProgFile%\Thunder Network\Thunder\Program\Update\*.*”
rd /s /q ”%ProgramFiles%\Tencent\QQGame\Download\*.*”
del /a /f /s /q ”%ProgramFiles%\Kaspersky Lab\*.tmp”
del /a /f /s /q ”%HOMEDRIVE%\Users\Public\Recorded TV\*.*”
del /a /f /s /q ”%HOMEDRIVE%\Users\Public\Pictures\*.*”
del /a /f /s /q ”%HOMEDRIVE%\Users\Public\Music\*.*”
del /a /f /s /q ”%HOMEDRIVE%\Users\Public\Videos\*.*”
del /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\PPLive\*.*”
rd /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\thunder_vod_cache\”
del /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\thunder_dctemp\*.*”
del /f /s /q ”%systemdrive%\Documents and Settings\Application Data\Kaspersky Lab\AVP8\Data\*.*”
del /a /f /s /q ”%HOMEDRIVE%\pragramdata\All Users\Application Data\Kaspersky Lab\AVP8\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Microsoft\Windows Photo Gallery\Original Images\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\Kingsoft\KavRep\*.*”
del /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\Kingsoft\KavRep\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\Kingsoft\office6\backup\*”
del /f /s /q ”%userprofile%\AppData\Roaming\Microsoft\Word\*”
del /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Search\*.*”
del /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Windows Defender\Backup\*.*”
del /f /s /q ”%ProgramFiles%\Microsoft Security Essentials\Backup\*.*”
del /a /f /s /q ”%userprofile%\Application Data\SogouPY\sgim_ext.bin”
del /f /s /q ”%userprofile%\AppData\LocalLow\SogouPY\sgim_ext.bin”
del /a /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Antimalware\LocalCopy\*.*”
del /a /f /s /q ”%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Windows Defender\LocalCopy\*.*”
del /a /f /s /q ”%HOMEDRIVE%\Users\Public\Thunder Network\Thunder_xmp\*.*”
del /f /s /q ”%userprofile%\AppData\LocalLow\XunleiBhoReport\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Microsoft\Portable Devices\*.*”
del /a /f /s /q ”%HOMEDRIVE%\MSOCache\*.*”
del /f /s /q ”%userprofile%\funshion\*.*”
del /f /s /q ”%ALLUSERSPROFILE%\mcache\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\FavIcon\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\Webkit\Cache\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\SogouVideoCache\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\Thumbnails\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\Temp\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\SogouExplorer\Download\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\XBrowserData\FavorIcon\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\XBrowserData\ThumbImage\*.*”
del /f /s /q ”%userprofile%\AppData\Roaming\XBrowserData\155BrowserImageCache\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\Webkit\Cache\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\SogouVideoCache\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\FavIcon\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\Thumbnails\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\Temp\*.*”
del /f /s /q ”%APPDATA%\SogouExplorer\Download\*.*”
del /f /s /q ”%APPDATA%\KuGou\*.*”
del /f /s /q ”%APPDATA%\KuGou7\*.*”
del /a /f /s /q ”LuDaShi\Clean\RegBak\*.*”
del /a /f /s /q ”LuDaShi\Clean\Hotfix\*.*”
del /a /f /s /q ”%ProgramFiles%\LuDaShi\Hotfix\*.*”
del /a /f /s /q ”%ProgramFiles%\LuDaShi\RegBak\*.*”
del /a /f /s /q ”%Programfiles%\360\360Safe\hotfix\*.*”
del /a /f /s /q ”%Programfiles%\ksafe\Temp\*.*”
del /a /f /s /q ”%Programfiles%\KSafe\hotfix\*.*”
del /a /f /s /q ”%Programfiles%\Kingsoft\KSafe\hotfix\*.*”
del /a /f /s /q ”%AllUsersProfile%\Tencent\QQPinyin\Repair\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\Tencent\QQPinyin\Repair\*.*”
del /a /f /s /q ”%ProgramFiles%\Thunder Network\Thunder\ThunderInstaller\*.*”
del /a /f /s /q ”%ProgramFiles%\Thunder Network\Thunder\BBInside\*.*”
del /a /f /s /q ”%ProgramFiles%\Thunder Network\Xmp\XmpInstaller\*.*”
del /a /f /s /q ”%ProgramFiles%\DriveTheLife\wanyixia\*.*”
del /a /f /s /q ”%ProgramFiles%\TweakCube\Backup\*.*”
del /a /f /s /q ”%ProgramFiles%\VistaMaster\log\*.*”
del /a /f /s /q ”%ProgramFiles%\VistaMaster\RegistryBackup\*.*”
del /a /f /s /q ”%SystemDrive%\ftnstat.stat
del /a /f /s /q ”%userprofile%\AppData\LocalLow\Microsoft\CryptnetUrlCache\*.*”
del /a /f /s /q ”%userprofile%\Application Data\Microsoft\CryptnetUrlCache\*.*”
del /a /f /s /q ”%SystemRoot%\system32\config\systemprofile\AppData\LocalLow\Microsoft\*.*”
del /a /f /s /q ”%APPDATA%\AIRPLAY\CACHE\IMAGE\*.*”
del /a /f /s /q ”%APPDATA%\TTPlayer\cache\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\TTPlayer\cache\*.*”
del /f /s /q ”%userprofile%\AppData\LocalLow\Thunder Network\Thunder\BHO\Statistics\*.*”
del /a /f /s /q ”%userprofile%\Application Data\Thunder Network\Thunder\BHO\Statistics\*.*”
del /a /f /s /q ”%userprofile%\AppData\LocalLow\Pusher\*.*”
FOR %%a IN ( C: ) DO DEL /f/s/q/a  %%a\*.xlbho
FOR %%a IN ( C: ) DO DEL /f/s/q/a  %%a\*.bhoss
del /f /s /q ”%APPDATA%\DriveTheLife2012\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\DriveTheLife2012\*.*”
del /a /f /s /q ”%ProgramFiles%\DriveTheLife2012\DriverTemp\*.*”
del /f /s /q ”%APPDATA%\Adobe\Flash Player\AssetCache\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\Adobe\Flash Player\AssetCache\*.*”
del /a /f /s /q ”%AllUsersProfile%\Jlcm\serializer\*.*”
del /f /s /q ”%APPDATA%\QQAppAssistant\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\QQAppAssistant\*.*”
del /f /s /q ”%userprofile%\Documents\Wandoujia\*.*”
del /f /s /q ”%APPDATA%\Wandoujia2\Download\*.*”
del /f /s /q ”%userprofile%\Documents\QQAppAssistant\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Opera\Opera\cache\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Opera\Opera\icons\*.*”
del /f /s /q ”%userprofile%\AppData\Local\Opera\Opera\thumbnails\*.*”
del /f /s /q ”%userprofile%\Documents\Tencent\QQPhoneManager\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\Tencent\QQPhoneManager\*.*”
del /a /f /s /q ”%userprofile%\AppData\LocalLow\PPLive\update\*.*”
del /f /s /q ”%APPDATA%\dg\*.*”
del /f /s /q ”%APPDATA%\duowan\*.*”
del /a /f /s /q ”%ALLUSERSPROFILE%\Application Data\duowan\*.*”
 
echo 清除系统LJ完成!
echo. & pause
 
=====到这里为止(这行不用复制)==============
以后只要双击运行该文件,当屏幕提示“清除系统LJ完成!就还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?可别忘了回帖喔!
 
这招比那些所谓的优化大师好用!最重要的是无论在公司默认的系统环境还是在自己家中的电脑都不会破坏系统文件
 
另一个方法,不用创建.bat文件清理系统垃圾,先把上面指令复制下来, 打开【开始】【程序】【附件】【命令提示符】在黑底区域右键粘贴,就开始执行清理垃圾命令了。


上一篇:怎样去除XP开机登陆画面

下一篇:DiskGen使用图文详解教程



在线咨询

点击这里给我发消息 添加QQ好友

点击这里给我发消息 QQ在线沟通

在线咨询

免费通话

24小时免费咨询

请输入您的联系电话,座机请加区号

免费通话

微信扫一扫

微信联系
返回顶部