M
MoshiachNow
HI,
Having a .reg file,I need to update all occurances of the old machine
name there into a new name.
Some stings are just plane (REG_SZ) ex:
"NodeList"="KDI-PGY2500"
but some are of multiple type (REG_MULTI_SZ) ex:
"VolumeList"=hex(7):5c,00,5c,00,50,00,47,00,59,00,32,00,36,00,30,00,30,00,5c,\
00,32,00,36,00,30,00,30,00,5c,00,41,00,72,00,61,00,78,00,69,00,56,00,6f,00,\
6c,00,75,00,6d,00,65,00,5f,00,50,00,47,00,59,00,32,00,36,00,30,00,30,00,5f,\
. . .
6f,00,66,00,69,00,6c,00,65,00,73,00,00,00,00,00
(Note that the above hex stirngs ALSO hides inside the old machine name
KDI-PGY2500,it's just hidden by formatting)
I need to go over the whole file and replace ALL VALUES from the old
name to a new one using Win32::Registry::File.
Any idea how to do it ?
Thanks
Having a .reg file,I need to update all occurances of the old machine
name there into a new name.
Some stings are just plane (REG_SZ) ex:
"NodeList"="KDI-PGY2500"
but some are of multiple type (REG_MULTI_SZ) ex:
"VolumeList"=hex(7):5c,00,5c,00,50,00,47,00,59,00,32,00,36,00,30,00,30,00,5c,\
00,32,00,36,00,30,00,30,00,5c,00,41,00,72,00,61,00,78,00,69,00,56,00,6f,00,\
6c,00,75,00,6d,00,65,00,5f,00,50,00,47,00,59,00,32,00,36,00,30,00,30,00,5f,\
. . .
6f,00,66,00,69,00,6c,00,65,00,73,00,00,00,00,00
(Note that the above hex stirngs ALSO hides inside the old machine name
KDI-PGY2500,it's just hidden by formatting)
I need to go over the whole file and replace ALL VALUES from the old
name to a new one using Win32::Registry::File.
Any idea how to do it ?
Thanks