REG ADD a REG_MULTI_SZ Multi-Line Registry Value

前端 未结 4 1993
你的背包
你的背包 2021-01-01 04:42

To add a REG_MULTI_SZ multi-line registry value, i can do

reg.exe ADD \"HKLM\\path\\to\\registry\\key\" /v RegistryValue /t REG_MULTI_SZ /d \"abc\\0def\\0\"
         


        
4条回答
  •  死守一世寂寞
    2021-01-01 05:14

    Just for reference.

    If you just want to insert a new line then you will need to simulate it with a space in the desire empty line. If the space would have an undesired impact in what you are trying to achieve then this post is not useful for you.

    reg.exe ADD "HKLM\path\to\registry\key" /v RegistryValue /t REG_MULTI_SZ /d "abc\0 \0def\0"

提交回复
热议问题