Win32::Registry::File - update values in file

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
 
M

Mumia W. (reading news)

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

What have you tried?

Consider using the "Encode" module to convert the data you get from the
..reg file from and to UCS-2LE.

You seem to be not getting too many responses to your messages; I advise
you to follow the posting guidelines for this newsgroup:

http://www.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top