windows - REG ADD a REG_MULTI_SZ Multi-Line Registry Value -
windows - REG ADD a REG_MULTI_SZ Multi-Line Registry Value -
to add together reg_multi_sz multi-line registry value, can do
reg.exe add together "hklm\path\to\registry\key" /v registryvalue /t reg_multi_sz /d "abc\0def\0"
which add together ("abc", "def").
but if need add together ("abc", "", "def"), i.e. empty item in between?
doing
reg.exe add together "hklm\path\to\registry\key" /v registryvalue /t reg_multi_sz /d "abc\0\0def\0"
gives me "invalid parameter" error.
this isn't possible using reg add, because info you're trying set improperly formed. reg_multi_sz values are terminated empty string, having empty string part of value not allowed.
if need to, , on understanding software won't able read key correctly, utilize reg import instead. example, next file creates value empty string in middle:
windows registry editor version 5.00 [hkey_current_user\software\harrytest] "test"=hex(7):76,00,61,00,6c,00,75,00,65,00,31,00,00,00,76,00,61,00,6c,00,75,\ 00,65,00,32,00,00,00,00,00,76,00,61,00,6c,00,75,00,65,00,34,00,00,00,76,00,\ 61,00,6c,00,75,00,65,00,35,00,00,00,00,00
windows command-line registry
Comments
Post a Comment