win7一键清理垃圾优化代码

时间:2023-05-31 08:22:15 

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

把下面的代码复制粘贴到新建文本保存,修改文本后缀名“.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

标签:win7一键清理,win7一键优化
0
投稿

猜你喜欢

  • Win10局域网共享设置教程 Win10局域网找不到对方电脑

    2023-12-18 03:33:42
  • Win7系统提示系统内存不足的原因解析

    2023-07-17 18:26:39
  • 小米钱包如何转账?小米钱包转账的操作方法

    2023-10-28 10:51:15
  • RANK函数(排位函数)该怎么用?

    2022-10-15 11:59:26
  • 把Swap添加到Ubuntu的开机启动项的方法介绍

    2022-06-15 11:52:07
  • PS怎么使用魔棒工具破解迷宫?使用魔棒工具轻松搞定

    2022-12-18 17:23:15
  • ​camtasia如何添加字幕

    2022-04-17 21:24:09
  • GridView数据复制到Excel中文乱码怎么办?

    2023-03-20 10:18:55
  • Win10预览版14342无法安装更新解决方法

    2022-03-26 00:51:59
  • 笔记本电脑i5、i7有什么区别?

    2022-10-25 09:45:30
  • Windows 10系统开启上帝模式的办法

    2023-01-03 15:09:27
  • win10笔记本电脑热点连上但上不了网怎么办?

    2023-03-28 00:37:17
  • macOS11.3 Beta 2新功能:开会之前帮你把Mac电池充满

    2022-02-02 09:46:03
  • 无需等待!两招让电脑自动关机

    2023-08-12 21:50:32
  • Excel 2019 如何利用高级筛选删除重复数据

    2023-09-28 16:40:35
  • SnippetsLab for Mac快捷键使用,SnippetsLab for Mac快捷键大全

    2022-12-24 20:10:50
  • 塔读文学怎么设置阅读偏好?塔读文学设置阅读偏好的方法

    2022-05-30 16:15:51
  • Win XP如何取消系统自动提示磁盘空间低

    2022-03-31 11:38:41
  • KB4541335更新了什么_KB4541335更新内容介绍

    2023-12-02 03:06:56
  • 如何下载YouTube上的卡拉OK歌曲?

    2023-09-16 12:02:14
  • asp之家 电脑教程 m.aspxhome.com