Board logo

标题: [注册表类] 求教,批处理怎么修改注册表的数据数值? [打印本页]

作者: jzz19921027    时间: 2023-2-1 15:03     标题: 求教,批处理怎么修改注册表的数据数值?

求教,批处理怎么修改注册表的数据数值?
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0]@="Microsoft XML, v6.0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\0]@=""

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\0\win32]@="C:\\Windows\\System32\\msxml6.dll"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\FLAGS]@="0"

[HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\HELPDIR]@="C:\\Windows\\System32\"

OFFICE2010安装需要修改里边的数值为C:\\Windows\\System32\\msxml6.dll,不太懂批处理该怎么写,求教
作者: yakeyun    时间: 2023-2-1 22:32

回复 1# jzz19921027
  1. @echo off
  2. cd /d "%~dp0"
  3. (
  4. echo Windows Registry Editor Version 5.00
  5. echo [HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0]@="Microsoft XML, v6.0"
  6. echo [HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\0]@=""
  7. echo [HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\0\win32]@="C:\\Windows\\System32\\msxml6.dll"
  8. echo [HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\FLAGS]@="0"
  9. echo [HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\HELPDIR]@="C:\\Windows\\System32\"
  10. ) >install.reg
  11. regedit /s install.reg
  12. if exist install.reg del install.reg
  13. exit
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2