- ·上一篇文章:批处理更改盘符背景
- ·下一篇文章:生成快捷方式的批处理
- ·百度中搜索更多的关于“一个注册表优化小P处理”相关内容
- ·谷歌中搜索更多的关于“一个注册表优化小P处理”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
一个注册表优化小P处理
只是用了reg命令,除了实用外根本没什么技术含量,希望各位前辈批评。[code]@echo off
cls
color 0a
setlocal
echo 本地化操作环境…
echo 本地化操作环境成功!
set regedit=%SystemRoot%\regedit.exe
if not exist %SystemRoot%\regedit.exe GOTO NOREGEDIT
if not exist %SystemRoot%\reset.bat GOTO backup
if exist %SystemRoot%\reset.bat goto reset
:QUI
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo 注册表优化已经全部完成,谢谢您的使用.
echo.
echo.
echo 如果您要撤消本次操作,请在命令提示符下键入 reset ,然后重新启动您的电脑。
echo.
echo.
echo.
echo 如果您有任何意见,请与 robust@topzj.com 联系.
echo.
echo.
echo. 作者: Robust QQ: 9704177
pause
:reset
echo 由于您已经运行过本优化程序,现在将执行还原程序,
set /p chs=[Y/N]
if /I "%CHS%"=="Y" call reset.bat
if /I "%CHS%"=="N" goto QUI
:backup
echo 由于您是第一次运行本程序,系统将自动备份注册表,请稍候......
reg export hklm %SystemRoot%\hklm.reg
reg export hkcu %SystemRoot%\hkcu.reg
reg export hkcr %SystemRoot%\hkcr.reg
reg export hku %SystemRoot%\hku.reg
reg export hkcc %SystemRoot%\hkcc.reg
cls
echo.
echo @echo off > %SystemRoot%\reset.bat
echo reg import %SystemRoot%\hklm.reg >> %SystemRoot%\reset.bat
echo reg import %SystemRoot%\hkcu.reg >> %SystemRoot%\reset.bat
echo reg import %SystemRoot%\hkcr.reg >> %SystemRoot%\reset.bat
echo reg import %SystemRoot%\hku.reg >> %SystemRoot%\reset.bat
echo reg import %SystemRoot%\hkcc.reg >> %SystemRoot%\reset.bat
echo call del.bat >> %SystemRoot%\reset.bat
echo @echo off > %SystemRoot%\del.bat
echo del %SystemRoot%\hklm.reg >> %SystemRoot%\del.bat
echo del %SystemRoot%\hkcu.reg >> %SystemRoot%\del.bat
echo del %SystemRoot%\hkcr.reg >> %SystemRoot%\del.bat
echo del %SystemRoot%\hku.reg >> %SystemRoot%\del.bat
echo del %SystemRoot%\hkcc.reg >> %SystemRoot%\del.bat
echo del %SystemRoot%\reset.bat >> %SystemRoot%\del.bat
echo 注册表备份完毕,下面将开始优化操作.
echo 操作后请您手动动重新启动机器.
pause
goto set
:set
echo Windows Registry Editor Version 5.00 > "%SystemRoot%\regedit.reg"
echo.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer] >> "%SystemRoot%\regedit.reg"
echo "AlwaysUnloadDLL"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> "%SystemRoot%\regedit.reg"
echo "SFCDisable"=dword:ffffff9d >> "%SystemRoot%\regedit.reg"
echo.
echo [HKEY_CURRENT_USER\Control Panel\Desktop] >> "%SystemRoot%\regedit.reg"
echo "HungAppTimeout"="200" >> "%SystemRoot%\regedit.reg"
echo "WaitToKillAppTimeout"="1000" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_CURRENT_USER\Control Panel\Desktop] >> "%SystemRoot%\regedit.reg"
echo "MenuShowDelay"="0" >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace] >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}] >> "%SystemRoot%\regedit.reg"
echo @="Printers" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters] >> "%SystemRoot%\regedit.reg"
echo "EnablePrefetcher"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders] >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_CLASSES_ROOT\lnkfile] >> "%SystemRoot%\regedit.reg"
echo @="快捷方式" >> "%SystemRoot%\regedit.reg"
echo "EditFlags"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo "NeverShowExt"="" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] >> "%SystemRoot%\regedit.reg"
echo "WaitToKillServiceTimeout"="500" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_CURRENT_USER\Control Panel\Desktop] >> "%SystemRoot%\regedit.reg"
echo "AutoEndTasks"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug] >> "%SystemRoot%\regedit.reg"
echo "Auto"="0" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction] >> "%SystemRoot%\regedit.reg"
echo "Enable"="Y" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] >> "%SystemRoot%\regedit.reg"
echo "ClearRecentDocsOnEixt"=hex:01,00,00,00 >> "%SystemRoot%\regedit.reg"
echo [HKEY_CURRENT_USER\Control Panel\Desktop] >> "%SystemRoot%\regedit.reg"
echo "MenuShowDelay"="0" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] >> "%SystemRoot%\regedit.reg"
echo "ConfigFileAllocSize"=dword:000001f4 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_USERS\.DEFAULT\Control Panel\Desktop] >> "%SystemRoot%\regedit.reg"
echo "HungAppTimeout"="200" >> "%SystemRoot%\regedit.reg"
echo "WaitToKillAppTimeout"="1000" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control] >> "%SystemRoot%\regedit.reg"
echo "WaitToKillServiceTimeout"="1000" >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] >> "%SystemRoot%\regedit.reg"
echo "DisablePagingExecutive"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo "SecondLevelDataCache"=dword:00000100 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS] >> "%SystemRoot%\regedit.reg"
echo "CPUPriority"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo "PCIConcur"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo "FastDRAM"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo "AGPConcur"=dword:00000001 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo #B83FC273-3522-4CC6-92EC-75CC86678DA4 /3721 >> "%SystemRoot%\regedit.reg"
echo #9A578C98-3C2F-4630-890B-FC04196EF420 /CNNIC >> "%SystemRoot%\regedit.reg"
echo #CF051549-EDE1-40F5-B440-BCD646CF2C25 /POPO >> "%SystemRoot%\regedit.reg"
echo #4EDBBAEA-F509-49F6-94D1-ECEC4BE5B686 /中文邮 >> "%SystemRoot%\regedit.reg"
echo #BC207F7D-3E63-4ACA-99B5-FB5F8428200C /Baidu >> "%SystemRoot%\regedit.reg"
echo #9BBC1154-218D-453C-97F6-A06582224D81 /Baidu>> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{B83FC273-3522-4CC6-92EC-75CC86678DA4}] >> "%SystemRoot%\regedit.reg"
echo "Compatibility Flags"=dword:00000400 >> "%SystemRoot%\regedit.reg"
echo. >> "%SystemRoot%\regedit.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{9A578C98-3C2F-4630-890B-FC04196EF420}] >> "%SystemRoot%\regedit.reg"
echo "Compatibility Flags"=dword:00000400 >> "%SystemRoot%\regedit.reg"

