Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
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

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top