• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >DOS/BAT > 关闭IDE通道检测的批处理

关闭IDE通道检测的批处理

作者: 字体:[增加 减小] 来源:互联网

通过本文主要向大家介绍了关闭ide通道,关闭多余的ide通道,关闭空闲的ide通道,ide通道,次要ide通道等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
:: 修改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 </div>

您可能想查找下面的文章:

  • 关闭IDE通道检测的批处理

相关文章

  • 在批处理文件中使用参数的方法
  • 开机更新桌面主题的批处理代码
  • 批处理中setlocal enabledelayedexpansion的作用详细整理
  • 恢复 Windows3.2 的屏幕设置
  • 终极dos批处理for循环命令详解
  • Wmic 实例应用代码分享
  • Windows批处理中获取文件属性的一些方法
  • 让批处理被wsh解析的代码
  • 批处理学习教程
  • 统计重复次数并排序的批处理

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • windows系统配制wget计划任务脚本
    • WIN2003 服务器安全配置批处理文件
    • DOS 强行杀进程的命令
    • XCOPY只拷贝当天文件的实现代码
    • BAT文件语法和技巧(bat文件的编写及使用)
    • 一个可以修复 IE浏览器的批处理文件
    • 通过批处理bat设置系统环境变量的实现代码
    • 批处理命令教学之字符串排序(sort)
    • Dos Shell操作代码
    • 用批处理解锁注册表

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有