联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
:: 修改IDE通道检测设备模式,不接设备的设置为无,提高XP启动速度 :: 建议在系统第二次重新启动检测到所有已经安装的IDE设备后运行 :: Author: Climbing(xclimbing@msn.com) :: Date: 2006.10.28 @set _debug= @echo %_debug% off & setlocal ENABLEDELAYEDEXPANSION set hkey1=HKLM\SYSTEM\CurrentControlSet\Enum\PCIIDE\IDEChannel set hkey2=HKLM\SYSTEM\CurrentControlSet\Control\Class for /f "usebackq tokens=*" %%I in (`reg query %hkey1% ^| find /i "IDEChannel"`) do call :_check "%%I" goto :eof :_check ::echo %1 set subkey= for /f "usebackq tokens=3*" %%J in (`reg query %1 ^| find /i "driver"`) do set subkey=%%J set DriverDesc= for /f "usebackq tokens=3,4*" %%K in (`reg query "%hkey2%\%subkey%" /v DriverDesc ^| find /i "driverdesc"`) do set DriverDesc=%%K %%L 通道 reg query "%hkey2%\%subkey%" /v MasterDeviceType | find /i "0x1" > nul if %errorlevel%==1 goto _ChgMaster goto _CheckSlave :_ChgMaster reg add "%hkey2%\%subkey%" /v UserMasterDeviceType /t REG_DWORD /d 3 /f echo “%DriverDesc%”的设备0检测方式设置为无。 :_CheckSlave reg query "%hkey2%\%subkey%" /v SlaveDeviceType | find /i "0x1" > nul if %errorlevel%==1 goto _ChgSlave goto :eof :_ChgSlave reg add "%hkey2%\%subkey%" /v UserSlaveDeviceType /t REG_DWORD /d 3 /f echo “%DriverDesc%”的设备1检测方式设置为无。 goto :eof
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002] "UserMasterDeviceType"=- "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0003] "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0004] "UserMasterDeviceType"=- "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0005] "UserMasterDeviceType"=- "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002] "UserMasterDeviceType"=- "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0003] "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0004] "UserMasterDeviceType"=- "UserSlaveDeviceType"=- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0005] "UserMasterDeviceType"=- "UserSlaveDeviceType"=-