win7一键清理垃圾优化代码

把下面的代码复制粘贴到新建文本保存,修改文本后缀名“.txt”为“.Bat”

----------------------------以下代码复制------------------------------------------

cls
@echo off

echo 系统垃圾清理
echo 包括IE,软件等等
echo Loading...
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
echo 清理IE文件,软件等等
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 "%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_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_/*.*"
del /a /f /s /q "%HOMEDRIVE%/Users/Public/Thunder Network/thunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_/Temp/*.*"
del /a /f /s /q "%HOMEDRIVE%/Users/Public/Thunder Network/Thunder_xmp/*.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/风行网络电影.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/酷我音乐盒.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/UUSee 网络电视.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/查查看2.0.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/多特软件站.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/金山清理专家2009.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/金山网镖.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/迅雷看看-免费高清影视.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/千千音乐.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/在线演示.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/酷我游戏.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/多特软件站.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/修复360安全卫士.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/风行游戏.*"

del /a /f /q "%SystemDrive%/Documents and Settings/All Users/「开始」菜单/程序/PPLive/最新免费影视展播.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPLive/PPLive 首页.*"
del /a /f /q "%ProgramFiles%/PPLiveVA/PPLiveVA.url"
del /a /f /q "%ProgramFiles%/PPLive/PPLive.url"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/360安全卫士/修复360安全卫士.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/「开始」菜单/程序/乐鱼影音盒/乐鱼影音盒 主页.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPS网络电视/多特知道 电脑答疑.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPS网络电视/下载软件最新版.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/酷狗/多特知道 电脑答疑.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/酷狗/下载软件最新版.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/Microsoft Office/访问完美者精品下载站.*"

del /a /f /q "D:/我的文档/收藏夹/爱词霸英语学习社区.*"
del /a /f /q "D:/我的文档/Favorites/QQ网址大全.*"
del /a /f /q "D:/我的文档/Favorites/爱词霸英语学习社区.*"
del /a /f /q "D:/我的文档/Favorites/链接/QQ网址大全.*"
del /a /f /q "D:/我的文档/Favorites/金狐电脑工作室-Jinhu Computer Studio.*"
del /a /f /q "D:/我的文档/Favorites/搜索王 - Search All.*"

del /a /f /q "%USERPROFILE%/收藏夹/爱词霸英语学习社区.*"
del /a /f /q "%USERPROFILE%/Favorites/QQ网址大全.*"
del /a /f /q "%USERPROFILE%/Favorites/爱词霸英语学习社区.*"
del /a /f /q "%USERPROFILE%/Favorites/链接/QQ网址大全.*"
del /a /f /q "%USERPROFILE%/Favorites/金狐电脑工作室-Jinhu Computer Studio.*"
del /a /f /q "%USERPROFILE%/Favorites/搜索王 - Search All.*"

del /a /f /q "%ProgramFiles%/FlashGet Network/FlashGet 3/绿色下载吧.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/快车 (FlashGet)/访问 自由分享绿色下载吧!.*"

del /a /f /q "%ProgramFiles%/StormII/绿色下载吧.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/暴风影音/访问 自由分享绿色下载吧!.*"

del /a /f /q "%SystemDrive%/WINDOWS/Tasks/SogouImeMgr.job"
exit
把下面的代码复制粘贴到新建文本保存,修改文本后缀名“.txt”为“.Bat”
cls
@echo off

echo 系统垃圾清理
echo 包括IE,软件等等
echo Loading...
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
echo 清理IE文件,软件等等
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 "%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_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_/*.*"
del /a /f /s /q "%HOMEDRIVE%/Users/Public/Thunder Network/thunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_/Temp/*.*"
del /a /f /s /q "%HOMEDRIVE%/Users/Public/Thunder Network/Thunder_xmp/*.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/风行网络电影.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/酷我音乐盒.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/UUSee 网络电视.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/Application Data/Microsoft/Internet Explorer/Quick Launch/查查看2.0.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/多特软件站.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/金山清理专家2009.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/金山网镖.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/迅雷看看-免费高清影视.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/千千音乐.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/在线演示.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/酷我游戏.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/多特软件站.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/桌面/修复360安全卫士.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/桌面/风行游戏.*"

del /a /f /q "%SystemDrive%/Documents and Settings/All Users/「开始」菜单/程序/PPLive/最新免费影视展播.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPLive/PPLive 首页.*"
del /a /f /q "%ProgramFiles%/PPLiveVA/PPLiveVA.url"
del /a /f /q "%ProgramFiles%/PPLive/PPLive.url"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/360安全卫士/修复360安全卫士.*"
del /a /f /q "%SystemDrive%/Documents and Settings/All Users/「开始」菜单/程序/乐鱼影音盒/乐鱼影音盒 主页.*"

del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPS网络电视/多特知道 电脑答疑.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/PPS网络电视/下载软件最新版.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/酷狗/多特知道 电脑答疑.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/酷狗/下载软件最新版.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/Microsoft Office/访问完美者精品下载站.*"

del /a /f /q "D:/我的文档/收藏夹/爱词霸英语学习社区.*"
del /a /f /q "D:/我的文档/Favorites/QQ网址大全.*"
del /a /f /q "D:/我的文档/Favorites/爱词霸英语学习社区.*"
del /a /f /q "D:/我的文档/Favorites/链接/QQ网址大全.*"
del /a /f /q "D:/我的文档/Favorites/金狐电脑工作室-Jinhu Computer Studio.*"
del /a /f /q "D:/我的文档/Favorites/搜索王 - Search All.*"

del /a /f /q "%USERPROFILE%/收藏夹/爱词霸英语学习社区.*"
del /a /f /q "%USERPROFILE%/Favorites/QQ网址大全.*"
del /a /f /q "%USERPROFILE%/Favorites/爱词霸英语学习社区.*"
del /a /f /q "%USERPROFILE%/Favorites/链接/QQ网址大全.*"
del /a /f /q "%USERPROFILE%/Favorites/金狐电脑工作室-Jinhu Computer Studio.*"
del /a /f /q "%USERPROFILE%/Favorites/搜索王 - Search All.*"

del /a /f /q "%ProgramFiles%/FlashGet Network/FlashGet 3/绿色下载吧.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/快车 (FlashGet)/访问 自由分享绿色下载吧!.*"

del /a /f /q "%ProgramFiles%/StormII/绿色下载吧.*"
del /a /f /q "%SystemDrive%/Documents and Settings/Administrator/「开始」菜单/程序/暴风影音/访问 自由分享绿色下载吧!.*"

del /a /f /q "%SystemDrive%/WINDOWS/Tasks/SogouImeMgr.job"
exit

(0)

相关推荐

  • win7一键清理垃圾文件有自动版吗

    win7一键清理垃圾文件并没有自动版,必须要手动才可以清理 Windows7系统使用过程中,用户会时常下载一些软件来方便使用,当使用电脑时间久后,电脑中的软件的样式也是越来越丰富,系统垃圾也随着这些软 ...

  • WIN7一键清理垃圾文件的代码?

    将下面内容用记事本编辑另存为。bat格式结尾文件,双击运行即可 [plain] @echo off color 0a title windows7系统垃圾清理--- echo ** ** ** ** ...

  • 手机钉钉如何一键清理垃圾

    现在有很多企业都在使用钉钉办公,有些用户想知道手机钉钉如何一键清理垃圾,接下来小编就给大家介绍一下具体的操作步骤.具体如下:1. 首先第一步打开手机中的[钉钉]App,根据下图箭头所指,点击右下角[我 ...

  • win8 系统垃圾清理 win8如何一键清理垃圾图文介绍

    Win8系统自2012年发布上市至今已经有一段时间了,Win8系统比之前的Win7拥有更佳的流畅度,初次使用Win8的朋友可能第一感觉就是启动非常快,不过使用一段时间后,发现Win8系统会越来越慢,这 ...

  • 一键清理垃圾bat 2017最新版

    深度清理电脑垃圾.缓存.痕迹.注册表等拖慢系统文件,提高电脑运行速度.操作简单,支持一键清理,简单易用,效果明显. 操作方法 01 第一步:复制下面代码 @echo off echo 正在清除系统垃圾 ...

  • win7快速清理系统垃圾的使用方法与技巧

    在使用电脑的过程当中,总要产生许多系统垃圾数据文件,这些系统垃圾数据有时会泄露我们的隐私造成不安全,当然垃圾文件过多有时还会影响到系统速度,是垃圾当然要清理了这时我们该怎么办呢? 今天跟大家分享的是W ...

  • 怎么一键清理QQ垃圾文件?

    用批处理文件一键清理 在QQ2013中,垃圾文件默认保存在“C:User系统用户名DocumentsTencent FilesQQ号码”目录中(系统名称和QQ号码为你自己的)。如:打开我的QQ文件保存 ...

  • 如何制作“一键清理”工具,并清理电脑垃圾呢?

    如图,制作好的工具截图 1.如何制作"一键清理"程序呢? 01 1.1首先,在电脑桌面新建一个"新建文本文档.txt"文件,然后把下面的程序复制到文档内: @e ...

  • 如何设置电脑自动清理垃圾

    电脑只要一开启,就会产生垃圾文件,如临时文件,记录log文件等等,如果加上大量的应用软件垃圾,就会拖慢电脑的运行,很多人只有在电脑出现慢或卡的时候,才会想起清理垃圾,能不能自动清理垃圾,而且是每天定时 ...