已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、进入:控制面板-系统-高级-环境变量2、单击用户变量中的TEMP-编辑-将那一长串内容变为D:TEMP(根据你需要,可改成其它盘,但不是系统所在的就行了)3、同上,将TMP同样改为D:TEMP。因为这些东西是让你的系统盘快速膨胀的主要内患,其属性是隐藏的,有些朋友还找不到呢!4、在“系统变量”同样将TEMP和TMP改成上面的。5、右键单击桌面“我的文档”-属性-目标文件夹中设置“目标文件夹位置”,将其改为D:MyDocuments或D:我的文档(喜欢放在哪里,你自己说了算!),然后可选移动。这个很重要,事实上当我们的电脑崩溃后,在系统盘中一般没有什么重要的东西,有用的都在MyDocuments中了,所以把它给挪个窝,你就什么也不用担心了,还有,有相当一部分朋友在DOS模式下还不会备份MyDocuments中的内容(因为那个文件夹名称很长,如果你恰好又用了中文,那就恭喜你:麻烦更大啦!)6、右键单击InternetExplorer-属性-常规-Internet临时文件-设置-移动文件夹-选择D:TemporaryInternetFiles(如果没有,可先创建,当然可用D:TEMP或其它什么,你的地盘,当然是你说了算!)-确定!7、系统-高级-性能-设置-高级-虚拟内存-更改-选择D或其它非系统分区-自定义大小-输入大小M-设置;选C或系统所在分区-无分页文件-设置-确定,这样就把虚拟存储器也转到其他硬盘上了。ECHO offcolor 0aREM 2012.08.11REM 增加优化自记功项功能REM 2012.05.01REM 区分服务器和非服务器(已取消)REM 2012.02.01REM 重点优化了本地帐户垃圾文件索引功能减少了循环次数以减小系统资源占用REM 修复细小Bug修复个别因命令书写失误导致的功能失效问题REM 2012.01.31REM 优化了清理顺序将需要重点清除和资源占用小的功能优先执行REM 2012.01.30REM 优化更为彻底可全自动删除域环境下所有本地帐户下的垃圾文件、自动删除系统更新遗留的补丁文件REM 针对家庭使用,增加了系统优化功能自动判断是否需要优化,减少资源占用:echo 当前帐户:%username%ECHO.ECHO =本程序用于服务器时具有相当的危险性,请参照本程序源码REM操作!=REM 服务器操作时这部分操作请勿使用!否则本人概不负责!echo 禁止java后台更新程序自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v SunJavaUpdateSched /f nul 2nulecho 禁止Adobe Reader升级程序自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Adobe ARM /f nul 2nulreg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Adobe Reader Speed Launcher /f nul 2nulreg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Reader_sl /f nul 2nulecho 禁止飞信自启动reg delete HKEY_LOCAL_userSOFTWAREMicrosoftWindowsCurrentVersionRun /v Fetion /f nul 2nulecho 禁止系统配置程序员自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v MSConfig /f nul 2nulecho 禁止日语输入法自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMJPMIG8.1 /f nul 2nulecho 禁止微软多语言支持自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMEKRMIG6.1 /f nul 2nulecho 禁止微软IME输入法组件自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMSCMig /f nul 2nulecho 禁止同步自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Synchronization Manager /f nul 2nulecho 禁止微软拼音输入法2002自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v MSPY2002 /f nul 2nulecho 禁止微软拼音输入法组件自启动reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v PHIME2002A /f nul 2nulreg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v PHIME2002ASync /f nul 2nulreg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Microsoft Pinyin IME Migration /f nul 2nulTITLE 清理.bak备份文件-谨慎操作!del /f /s /q %windir%*.bakREM 用于服务器时请勿删除日志!-谨慎操作!TITLE 用于服务器时请勿删除日志!-谨慎操作!del /f /s /q %systemdrive%*.logREM 勿使用rd /s /q %windir%temp & md %windir%temp命令,否则服务器服务(如DB)容易出现问题!del /f/s /q %windir%temp*.*REM 若要清理帮助文件,将下面的:删除即可rd /s /q %windir%helpECHO :1.清理局域网共享痕迹-注册表:TITLE :1.清理局域网共享痕迹-注册表:reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerWorkgroupCrawlerShares /f nul 2nul ECHO :2.清理运行或操作历史记录-注册表:TITLE :2.清理运行或操作历史记录-注册表:reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocsFolder /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.txt /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rar /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.mp3 /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.jpg /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.ini /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.bmp /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.doc /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.eip /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.htm /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.ico /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.inf /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.gif /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.wav /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.xls /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rm /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedMRU /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU* /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUmp3 /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUrm /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUwav /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUbat /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUexe /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUeip /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUico /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUhtm /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUjpg /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerStreamMRU /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist5E6AB780-7743-11CF-A12B-00AA004AE837Count /va /f nul 2nul reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist75048700-EF1F-11D0-9888-006097DEACF9Count /va /f nul 2nul reg delete HKCUSoftwareWinRARArcHistory /va /f nul 2nul reg delete HKCUSoftwareWinRARDialogEditHistoryArcName /va /f nul 2nulreg delete HKCUSoftwareWinRARDialogEditHistoryExtrPath /va /f nul 2nul reg delete HKCUSoftwareMicrosoftMediaPlayerPlayerRecentFileList /va /f nul 2nul reg delete HKCUSoftwareMicrosoftMicrosoft Management ConsoleRecent File List /va /f nul 2nul reg delete HKCUSoftwareMicrosoftOffice11.0PowerPointRecent File List /va /f nul 2nulreg delete HKCUSoftwareMicrosoftOffice11.0ExcelRecent File /va /f nul 2nulreg delete HKCUSoftwareMicrosoftOffice11.0WordData /v Settings /f nul 2nulreg delete HKCUSoftwareVMware, Inc. /va /f nul 2nulECHO :3.清理IE浏览历史的下拉列表-注册表:TITLE :3.清理IE浏览历史的下拉列表-注册表:reg delete HKCUSoftwareMicrosoftInternet ExplorerTypedUrls /va /f nul 2nul ECHO :4.正在清理常见系统垃圾文件,请退出360等程序:TITLE :4.正在清理常见系统垃圾文件,请退出360等程序:del /f /q %ALLUSERSPROFILE%DocumentsDrWatson*.*nul 2nul del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%thumbs.dbdel /f /s /q %systemdrive%recycled*.*del /f /s /q %windir%system32dllcache*.*del /f /s /q %windir%prefetch*.*clsECHO :5.为安全起见,以下清理操作只对当前登录帐户有效:TITLE :5.为安全起见,以下清理操作只对当前登录帐户有效:del /f /s /q %tmp%*.*ECHO :6.清理文件缓存:TITLE :6.清理文件缓存:SFC /purgecacheclsECHO :7.清理系统升级补丁目录:TITLE :7.清理系统升级补丁目录:dir %SystemRoot%$*$ /ad/b %SystemRoot%DirTmp.txt for /f %a in (%SystemRoot%DirTmp.txt) do rd /s /q %SystemRoot%a del /f /q %SystemRoot%DirTmp.txtclsECHO :8.清理磁盘错误检测文件:TITLE :8.清理磁盘错误检测文件:dir %SystemDrive%found.? /ad/b %systemDrive%DirTmp.txt for /f %a in (%systemDrive%DirTmp.txt) do rd /s /q %systemDrive%a del /f /q %systemDrive%DirTmp.txtclsECHO
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二四年度生物医疗实验设备租赁与技术培训合同
- 2024年度城市公共信息标识标牌合同
- 水泥稳定碎石采购合同
- 项目部与班组安全协议书
- 2024年度化工产品代销协议
- 2024年度大型商场门窗改造承包合同
- 二零二四年度施工合同工程质量标准与工期要求
- 2024年度苗木种植基地土地租赁合同
- 二手住房买卖合同样本-2024年
- 二零二四年度房地产经纪服务合同协议书
- 《ST欧浦大股东掏空行为案例研究》
- 医院改扩建工程可行性研究报告(论证后)
- 【初中生物】第三章微生物检测试题 2024-2025学年人教版生物七年级上册
- 六年级数学上册 (基础版)第4章《比》单元培优拔高测评试题(学生版)(人教版)
- 《中华人民共和国药品管理法》
- 医科大学2024年12月肿瘤护理学作业考核试题答卷
- 2024年大型风力发电项目EPC总承包合同
- 2025届浙江省宁波市海曙区效实中学物理高二第一学期期末考试试题含解析
- 2024水样采集与保存方法
- 2025届高考语文一轮复习:二元思辨类作文思辨关系高阶思维
- 《中国慢性阻塞性肺疾病基层诊疗与管理指南(2024年)》解读
评论
0/150
提交评论