How to launch Windows' RegEdit with certain path?

前端 未结 13 1128
盖世英雄少女心
盖世英雄少女心 2020-12-08 04:15

How do I launch Windows\' RegEdit with certain path located, like \"HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\8.0\", so I don\'t have to do the clic

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 04:38

    Use the following batch file (add to filename.bat):

    REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit /v LastKey /t REG_SZ /d Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config /f
    START regedit
    

    to replace:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
    

    with your registry path.

提交回复
热议问题