Hello All,
I have two files, one is old where "some" data from this file needs to be overwritten into the second file. The files are actually .reg files. In these files, there are about 30 keys that are defined but only about 10 keys need to be updated. An example of the two files are shown below.
file(old).reg
***********************************************
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOMETHING\PERM\PhoneNumber]
@="1234567"
[HKEY_CURRENT_USER\SOMETHING\PERM\ClientCode]
@="B01"
[HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\....]
"Account Name"="blah,blah,blah.com"
"ServerName"="PCCCCP"
Etc.
Etc.
file(new).reg
***********************************************
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOMETHING\PERM\PhoneNumber]
@="XXXXXXX"
[HKEY_CURRENT_USER\SOMETHING\PERM\ClientCode]
@="XXX"
[HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\....]
"Account Name"="blah,blah,blah.com"
"ServerName"="XXXXXX"
Etc.
Etc.
********************************************
Can anyone assist? Is this easier with batch or with vbscript? I am learning both at this time and perhaps this request is a bit over my head. All I'm looking for is code snippets.
Thanks in advance!!!!
I have two files, one is old where "some" data from this file needs to be overwritten into the second file. The files are actually .reg files. In these files, there are about 30 keys that are defined but only about 10 keys need to be updated. An example of the two files are shown below.
file(old).reg
***********************************************
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOMETHING\PERM\PhoneNumber]
@="1234567"
[HKEY_CURRENT_USER\SOMETHING\PERM\ClientCode]
@="B01"
[HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\....]
"Account Name"="blah,blah,blah.com"
"ServerName"="PCCCCP"
Etc.
Etc.
file(new).reg
***********************************************
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOMETHING\PERM\PhoneNumber]
@="XXXXXXX"
[HKEY_CURRENT_USER\SOMETHING\PERM\ClientCode]
@="XXX"
[HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\....]
"Account Name"="blah,blah,blah.com"
"ServerName"="XXXXXX"
Etc.
Etc.
********************************************
Can anyone assist? Is this easier with batch or with vbscript? I am learning both at this time and perhaps this request is a bit over my head. All I'm looking for is code snippets.
Thanks in advance!!!!