




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
因为我的知识也是来自网上 所以我想没有必要隐藏代码 大家互相学习才能更快地进 步 之所以封装成 exe 的可执行文件 是因为有此功能要和透明图标在同一目录下运行 综合 考虑 做个 exe 文件方便移动 没有版权问题 欢迎修改 如果你在此基础上做上了更优的版本 请发一份到我邮箱 谢谢 mode con cols 40 lines 20 title win7 终极批处理 echo off color 3f main cls echo echo echo 丨 win7 终极批处理 丨 echo 丨 丨 echo 丨 制作 何 苦 丨 echo echo echo 1 清理 win7 系统垃圾 echo 2 修复打开图片缓慢 echo 3 重启 explorer 进程 echo 4 定时关机 取消关机 echo 5 清除任务栏历史图标 echo 6 去掉快捷方式小箭头 echo 7 恢复快捷方式小箭头 echo 8 备份 优化系统服务 echo 9 清除图片位置冗余文件夹 echo 0 退出 echo echo 直接回车可查看说明文档 echo set choice set p choice 请输入 序号 回车 if i choice 1 goto main1 if i choice 2 goto main2 if i choice 3 goto main3 if i choice 4 goto main4 if i choice 5 goto main5 if i choice 6 goto main6 if i choice 7 goto main7 if i choice 8 goto main8 if i choice 9 goto main9 if i choice 0 goto end cls echo 您好 感谢使用 win7 终级批处理 本工具 echo 默认 win7 系统安装在 C 盘下 如果 win7 非安装 echo 在 C 盘下 部分功能无效 echo echo 本工具可以常规清理系统垃圾 修复因用户进 echo 行过校准颜色而使打开图片缓慢 清除任务栏 echo 托盘里的历史图标 清除桌面背景 图片位置 echo 里用户自定义的文件夹 去除快捷方式小箭头 echo 恢复小箭头 无法将图标附到任务栏和开始 echo 菜单等问题也可用此修复 备份及优化系统 echo 服务 批处理中有些功能要修改注册表 如有 echo 软件拦截 请放行 echo echo 所有功能均在作者机子上测试通过 但由于不 echo 定因素 不能保证所有用户都能正常使用 如 echo 果出现问题 请恕作者不负任何责任 echo echo 交流邮箱 heku echo pause goto main end exit main1 cls echo 正在清理系统盘中的垃圾文件 del f s q systemdrive log 2 nul del f s q systemdrive bak 2 nul del f s q systemdrive chk 2 nul del f s q systemdrive tmp 2 nul del f s q systemdrive mp 2 nul del f s q systemdrive ftg 2 nul del f s q systemdrive gid 2 nul del f s q systemdrive pnf 2 nul del f s q systemdrive thumbs db 2 nul rd s q windir temp md windir temp 2 nul del f s q systemdrive recycled 2 nul del f s q windir prefetch 2 nul del f q userprofile AppData Roaming Microsoft Windows Cookies 2 nul del f s q userprofile AppData Local Microsoft Windows Temporary Internet Files 2 nul cls d cd echo 正在清理其他盘中的垃圾文件 del f s q log 2 nul del f s q tmp 2 nul del f s q thumbs db 2 nul e cd del f s q log 2 nul del f s q tmp 2 nul del f s q thumbs db 2 nul f cd del f s q log 2 nul del f s q tmp 2 nul del f s q thumbs db 2 nul g cd del f s q log 2 nul del f s q tmp 2 nul del f s q thumbs db 2 nul goto main main2 cls echo echo echo echo echo echo echo echo echo 正在修复 请稍等 echo echo echo echo echo echo echo echo echo echo del windir system32 spool drivers color CalibratedDisplayProfile icc nul 2 nul ping localhost n 3 nul 2 nul goto main main3 cls echo echo echo echo echo echo echo echo echo explorer 进程重启中 请勿关闭程序 echo echo echo echo echo echo echo echo echo echo taskkill f im Explorer exe nul 2 nul ping localhost n 3 nul 2 nul start explorer exe windir explorer exe goto main main4 cls set hour time 0 2 set min time 3 2 echo echo 丨 丨 echo 丨 date hour 时 min 分 丨 echo 丨 丨 echo echo echo echo echo echo echo 1 定时关机 echo 2 取消关机 echo 0 退出 echo echo echo echo 直接回车可查看说明文档 echo echo set ver0 set p ver0 请输入 序号 回车 if i ver0 1 goto powerdown if i ver0 2 goto giveup if i ver0 0 goto exitd cls echo echo echo 如果要在 21 30 关机 输入格式 echo echo 请输入时 21 echo 请输入分 30 echo echo echo 请正确输入时间 否则可能不能成功执行 echo echo echo echo echo echo echo echo echo echo pause goto main4 exitd goto main powerdown cls echo echo 丨 丨 echo 丨 date hour 时 min 分 丨 echo 丨 丨 echo echo echo echo echo 24 时制 set p time1 请输入时 set p time2 请输入分 echo if i time1 goto powerdown if i time2 goto powerdown at time1 time2 shutdown s t 0 nul echo echo 您的电脑将在 time1 time2 时刻关闭 echo echo 在关机之前 您可以随时取消关机计划 echo echo echo pause goto main giveup cls at del yes echo echo echo echo echo echo echo echo echo 关机计划已经取消 按任意键返回 echo echo echo echo echo echo echo echo echo echo pause nul goto main main5 reg delete HKCU Software Classes Local Settings Software Microsoft Windows CurrentVersion TrayNotify v IconStreams f reg delete HKCU Software Classes Local Settings Software Microsoft Windows CurrentVersion TrayNotify v PastIconsStream f goto main3 main6 copy Empty ico systemdrive windows nul echo Windows Registry Editor Version 5 00 D tmp reg echo HKEY CLASSES ROOT piffile D tmp reg echo IsShortcut D tmp reg echo HKEY CLASSES ROOT lnkfile D tmp reg echo IsShortcut D tmp reg echo HKEY LOCAL MACHINE SOFTWARE Microsoft Windows CurrentVersion Explorer Shell Icons D tmp reg echo 29 C Windows Empty ico 0 D tmp reg regedit s D tmp reg del D tmp reg goto main3 main7 echo Windows Registry Editor Version 5 00 D tmp reg echo HKEY CLASSES ROOT piffile D tmp reg echo IsShortcut D tmp reg echo HKEY CLASSES ROOT lnkfile D tmp reg echo IsShortcut D tmp reg echo HKEY LOCAL MACHINE SOFTWARE Microsoft Windows CurrentVersion Explorer Shell Icons D tmp reg regedit s D tmp reg del D tmp reg del windir Empty ico goto main3 main8 cls echo echo echo echo echo 1 备份服务 echo echo 2 优化服务 echo echo 0 退出 echo echo echo echo echo 建议在优化之前先做备份 echo echo echo echo echo set ver1 set p ver1 请输入 序号 回车 if i ver1 1 goto bfser if i ver1 2 goto yhser if i ver1 0 goto exitser exitser goto main bfser cls echo echo 正在备份服务 如果优化出了问题您可以及时 echo 恢复 备份会生成一个以当前时间命名的批处 echo 理文件 恢复时只要双击即可 rem get current date and time for f tokens 1 2 3 4 delims j in Date T do set FILENAME srv j k l m for f tokens 1 2 delims j in TIME T do set FILENAME FILENAME j k bat rem get all service name sc query type service state all findstr r C SERVICE NAME tmpsrv txt echo echo echo echo 正在备份 请稍等 echo echo echo echo echo echo echo rem save service start state into batch file echo echo Restore The Service Start State Saved At TIME DATE FILENAME echo pause FILENAME for f tokens 2 delims j in tmpsrv txt do sc qc j findstr START TYPE tmpstype txt for f tokens 4 delims s in tmpstype txt do echo sc config j start s FILENAME echo pause FILENAME del tmpsrv txt del tmpstype txt echo 服务已备份到 echo FILENAME echo echo 按任意键返回 pause nul goto main8 yhser cls sc config AxInstSV demand sc config ALG start demand sc config AppMgmt start demand sc config AudioEndpointBuilder start auto sc config Audiosrv start auto sc config BFE start auto sc config BITS start demand sc config Browser start demand sc config CertPropSvc start demand sc config clr optimization v2 0 50727 32 start demand sc config COMSysApp start demand sc config CryptSvc start auto sc config DcomLaunch start auto sc config Dhcp start auto sc config Dnscache start auto sc config dot3svc start demand sc config EapHost start demand sc config EventSystem start auto sc config fdPHost start demand sc config FDResPub start demand sc config FontCache3 0 0 0 start demand sc config gpsvc start auto sc config hidserv start demand sc config hkmsvc start demand sc config idsvc start demand sc config IKEEXT start demand sc config IPBusEnum start demand sc config KeyIso start demand sc config LanmanServer start auto sc config LanmanWorkstation start auto sc config lltdsvc start demand sc config lmhosts start auto sc config MMCSS start auto sc config MpsSvc start auto sc config msiserver start demand sc config napagent start demand sc config Netlogon start demand sc config Netman start demand sc config netprofm start auto sc config NetTcpPortSharing start disabled sc config NlaSvc start auto sc config nsi start auto sc config PlugPlay start auto sc config ProfSvc start auto sc config RasAuto start demand sc config RasMan start demand sc config RemoteAccess start disabled sc config RpcLocator start demand sc config RpcSs start auto sc config SamSs start auto sc config SCardSvr start demand sc config SCPolicySvc start demand sc config SENS start auto sc config SharedAccess start disabled sc config SNMPTRAP start demand sc config SSDPSRV start demand sc config SstpSvc start demand sc config SysMain start auto sc config TapiSrv start demand sc config TBS start demand sc config Themes start auto sc config THREADORDER start demand sc config TrustedInstaller start demand sc config upnphost start demand sc config UxSms start auto sc config vds start demand
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年湖北省社会科学院人才引进10人模拟试卷及答案详解(全优)
- 2025年中储粮新疆分公司春季招聘拟聘用人选笔试题库历年考点版附带答案详解
- 2025年2月广东广州市海珠区人民法院招聘劳动合同制法官助理、书记员招聘拟聘人选考前自测高频考点模拟试题(含答案详解)
- 2025湖南衡阳市水务投资集团有限公司招聘30人考前自测高频考点模拟试题及答案详解(名师系列)
- 2025湖南新宁县事业单位和县属国有企业人才引进降低开考比例岗位模拟试卷完整答案详解
- 2025届深圳地铁运营集团有限公司应届生招聘笔试题库历年考点版附带答案详解
- 2025湖南长沙市生态环境局芙蓉分局招聘编外合同制工作人员考前自测高频考点模拟试题附答案详解(黄金题型)
- 2025海南澄迈县就业局招聘见习生1人模拟试卷及答案详解(全优)
- 2025年湖南邵阳城步县事业单位选调28人模拟试卷(含答案详解)
- 2025中电信数政科技有限公司招聘50人笔试题库历年考点版附带答案详解
- GB/T 21499-2024粮油检验稻谷和糙米潜在出米率测定方法
- (版)科学道德与学风建设题库
- GB/Z 44314-2024生物技术生物样本保藏动物生物样本保藏要求
- DB14T 2922-2023 公路机电工程标准工程量清单及计量规范
- 2023年全国职业院校技能大赛-融媒体内容策划与制作赛项规程
- 《电力建设施工企业安全生产标准化实施规范》
- 糖尿病周围神经病变知多少课件
- 新概念英语青少版入门 A-Unit-1课件(共98张)
- 儿童肺炎支原体肺炎诊疗指南(2023年版)解读
- 个人履职考核情况表
- 中小学消防安全、交通安全、食品安全、防溺水、防欺凌系统安全教育主题课件
评论
0/150
提交评论