win7一键清理垃圾优化代码
win7一键清理垃圾优化代码
发布时间:2016-12-27 来源:查字典编辑
摘要:把下面的代码复制粘贴到新建文本保存,修改文本后缀名“.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%MicrosoftWindowscookies*.*"

del /f /q %userprofile%recent*.*

del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

del /f /s /q "%userprofile%recent*.*"

del /f /s /q %windir%SoftwareDistributionDownload*.*

del /f /s /q "%appdata%MicrosoftWindowsRecent*.*"

rd /s /q "%userprofile%Local SettingsTemp" & md "%userprofile%Local SettingsTemp"

del /f /s /q "%userprofile%Application DataPPStream*.*"

del /f /s /q "%userprofile%AppDataRoamingPPStream*.*"

del /f /s /q "%userprofile%AppDataRoamingTheWorlddata*.*"

del /f /s /q "%userprofile%Application DataPPLive*.*"

del /f /s /q "%userprofile%AppDataRoamingPPLive*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsExplorer*.*"

del /f /s /q "%windir%Offline Web Pages*.*

del /f /s /q "%userprofile%UpdateData*.*"

del /f /s /q "%userprofile%Application DataQQUpdate*.*"

del /f /s /q "%ProgFile%Thunder NetworkThunderProgramUpdate*.*"

rd /s /q "%ProgramFiles%TencentQQGameDownload"

del /a /f /s /q "%ProgramFiles%Kaspersky Lab*.tmp"

del /a /f /s /q "%HOMEDRIVE%UsersPublicRecorded TV*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicPictures*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicMusic*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicVideos*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataPPLive*.*"

rd /s /q "%systemdrive%Documents and SettingsAll UsersApplication Datathunder_vod_cache"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication Datathunder_dctemp*.*"

del /f /s /q "%systemdrive%Documents and SettingsApplication DataKaspersky LabAVP8Data*.*"

del /a /f /s /q "%HOMEDRIVE%pragramdataAll UsersApplication DataKaspersky LabAVP8*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindows Photo GalleryOriginal Images*.*"

del /f /s /q "%userprofile%AppDataRoamingKingsoftKavRep*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataKingsoftKavRep*.*"

del /f /s /q "%userprofile%AppDataRoamingKingsoftoffice6backup*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftSearch*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderBackup*.*"

del /f /s /q "%ProgramFiles%Microsoft Security EssentialsBackup*.*"

del /a /f /s /q "%userprofile%Application DataSogouPYsgim_ext.bin"

del /f /s /q "%userprofile%AppDataLocalLowSogouPYsgim_ext.bin"

del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftMicrosoft AntimalwareLocalCopy*.*"

del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderLocalCopy*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder Networkthunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_Temp*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_xmp*.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch风行网络电影.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch酷我音乐盒.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick LaunchUUSee 网络电视.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch查查看2.0.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面多特软件站.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面金山清理专家2009.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面金山网镖.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面迅雷看看-免费高清影视.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面千千音乐.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面在线演示.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面酷我游戏.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面多特软件站.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面修复360安全卫士.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面风行游戏.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users「开始」菜单程序PPLive最新免费影视展播.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPLivePPLive 首页.*"

del /a /f /q "%ProgramFiles%PPLiveVAPPLiveVA.url"

del /a /f /q "%ProgramFiles%PPLivePPLive.url"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序360安全卫士修复360安全卫士.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users「开始」菜单程序乐鱼影音盒乐鱼影音盒 主页.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPS网络电视多特知道 电脑答疑.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPS网络电视下载软件最新版.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序酷狗多特知道 电脑答疑.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序酷狗下载软件最新版.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序Microsoft Office访问完美者精品下载站.*"

del /a /f /q "D:我的文档收藏夹爱词霸英语学习社区.*"

del /a /f /q "D:我的文档FavoritesQQ网址大全.*"

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%FavoritesQQ网址大全.*"

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 NetworkFlashGet 3绿色下载吧.*"

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

del /a /f /q "%ProgramFiles%StormII绿色下载吧.*"

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

del /a /f /q "%SystemDrive%WINDOWSTasksSogouImeMgr.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%MicrosoftWindowscookies*.*"

del /f /q %userprofile%recent*.*

del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

del /f /s /q "%userprofile%recent*.*"

del /f /s /q %windir%SoftwareDistributionDownload*.*

del /f /s /q "%appdata%MicrosoftWindowsRecent*.*"

rd /s /q "%userprofile%Local SettingsTemp" & md "%userprofile%Local SettingsTemp"

del /f /s /q "%userprofile%Application DataPPStream*.*"

del /f /s /q "%userprofile%AppDataRoamingPPStream*.*"

del /f /s /q "%userprofile%AppDataRoamingTheWorlddata*.*"

del /f /s /q "%userprofile%Application DataPPLive*.*"

del /f /s /q "%userprofile%AppDataRoamingPPLive*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsExplorer*.*"

del /f /s /q "%windir%Offline Web Pages*.*

del /f /s /q "%userprofile%UpdateData*.*"

del /f /s /q "%userprofile%Application DataQQUpdate*.*"

del /f /s /q "%ProgFile%Thunder NetworkThunderProgramUpdate*.*"

rd /s /q "%ProgramFiles%TencentQQGameDownload"

del /a /f /s /q "%ProgramFiles%Kaspersky Lab*.tmp"

del /a /f /s /q "%HOMEDRIVE%UsersPublicRecorded TV*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicPictures*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicMusic*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicVideos*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataPPLive*.*"

rd /s /q "%systemdrive%Documents and SettingsAll UsersApplication Datathunder_vod_cache"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication Datathunder_dctemp*.*"

del /f /s /q "%systemdrive%Documents and SettingsApplication DataKaspersky LabAVP8Data*.*"

del /a /f /s /q "%HOMEDRIVE%pragramdataAll UsersApplication DataKaspersky LabAVP8*.*"

del /f /s /q "%userprofile%AppDataLocalMicrosoftWindows Photo GalleryOriginal Images*.*"

del /f /s /q "%userprofile%AppDataRoamingKingsoftKavRep*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataKingsoftKavRep*.*"

del /f /s /q "%userprofile%AppDataRoamingKingsoftoffice6backup*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftSearch*.*"

del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderBackup*.*"

del /f /s /q "%ProgramFiles%Microsoft Security EssentialsBackup*.*"

del /a /f /s /q "%userprofile%Application DataSogouPYsgim_ext.bin"

del /f /s /q "%userprofile%AppDataLocalLowSogouPYsgim_ext.bin"

del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftMicrosoft AntimalwareLocalCopy*.*"

del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderLocalCopy*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder Networkthunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_Temp*.*"

del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_xmp*.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch风行网络电影.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch酷我音乐盒.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick LaunchUUSee 网络电视.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministratorApplication DataMicrosoftInternet ExplorerQuick Launch查查看2.0.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面多特软件站.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面金山清理专家2009.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面金山网镖.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面迅雷看看-免费高清影视.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面千千音乐.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面在线演示.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面酷我游戏.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面多特软件站.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator桌面修复360安全卫士.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users桌面风行游戏.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users「开始」菜单程序PPLive最新免费影视展播.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPLivePPLive 首页.*"

del /a /f /q "%ProgramFiles%PPLiveVAPPLiveVA.url"

del /a /f /q "%ProgramFiles%PPLivePPLive.url"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序360安全卫士修复360安全卫士.*"

del /a /f /q "%SystemDrive%Documents and SettingsAll Users「开始」菜单程序乐鱼影音盒乐鱼影音盒 主页.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPS网络电视多特知道 电脑答疑.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序PPS网络电视下载软件最新版.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序酷狗多特知道 电脑答疑.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序酷狗下载软件最新版.*"

del /a /f /q "%SystemDrive%Documents and SettingsAdministrator「开始」菜单程序Microsoft Office访问完美者精品下载站.*"

del /a /f /q "D:我的文档收藏夹爱词霸英语学习社区.*"

del /a /f /q "D:我的文档FavoritesQQ网址大全.*"

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%FavoritesQQ网址大全.*"

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 NetworkFlashGet 3绿色下载吧.*"

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

del /a /f /q "%ProgramFiles%StormII绿色下载吧.*"

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

del /a /f /q "%SystemDrive%WINDOWSTasksSogouImeMgr.job"

exit

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新Windows系列学习
热门Windows系列学习
操作系统子分类