删除并添加注册表项.bat

时间:2017-03-25 16:45:03

标签: file batch-file cmd command registry

我导出了我要合并.reg文件的密钥。

        Windows Registry Editor Version 5.00

        [HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\bkkar\General]
        "Coords"=dword:00000002
        "StandardsViolation"=dword:00000001
        "WSCURRENT"="Drafting & Annotation"
        "QnewTemplate"="E:\\STD\\TMP\\BK.dwt"
    "ToolPalettePath"=hex(2):45,00,3a,00,5c,00,53,00,54,00,44,00,5c,00,54,00,50,00,\
      00,00
"TemplatePath"=hex(2):45,00,3a,00,5c,00,53,00,54,00,44,00,5c,00,54,00,4d,00,50,\
  00,00,00

我想通过创建批处理文件.bat

来合并.reg文件

2 个答案:

答案 0 :(得分:0)

reg add  HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\bkkar\General /v Coords /d 1 /t REG_DWORD

reg add  HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\bkkar\General /v StandardsViolation /d 1 /t REG_DWORD

reg add  HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\bkkar\General /v WSCURRENT /d "Drafting & Annotation"

reg add  HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\bkkar\General /v QnewTemplate /d "E:\\STD\\TMP\\BK.dwt"

试试这个。

REG command

答案 1 :(得分:0)

我想通过创建批处理文件.bat

来合并.reg文件

另一个答案是使用regedit导入.reg文件的更简单方法。

批处理文件示例:

@echo off
regedit myfile.reg

进一步阅读