Thanks
I was able to get the values and write them out to a new reg key which I later imported back into the registry.
G
Main Topics
Browse All TopicsHi
I am installing a piece of software which overwrites the registry key
HKLM \ SOFTWARE \ PRODUCT_NAME \ GENERAL. What I want to do is extract a couple of values from the GENERAL registry key first, install the software, and then import the values back into the new key. i don't want all the values under the GENERAL key, just 2.
I have written a small vbscript to export registry key using regedit /e When I then go to read the values and put them into an array using vbs, it doesn't look like it can read the file correctly. I have also tried using objshell.regread to read the regkey but I get an error stating Unable to open the registry key.
Basically what I would like to know is what is the best way to extract or export a couple of specific values from the registry key HKLM \ SOFTWARE \ PRODUCT_NAME \ GENERAL to a .reg file which I can then use to import the values back into the registry later on.
I hope this makes sense.
Thanks
G
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: TheNauticanPosted on 2009-11-03 at 10:57:50ID: 25732202
Well, what data type are they? here's an example with expanded string. e to
m/activmon itor/windo wsmanageme nt/ adminsc ripts/regi stry/
but just change oReg.GetExpandedStringValu
oReg.GetMultiStringValue for Multistring
oReg.GetStringValue for DWORD and strings
oReg.GetBinaryValue for binary
source: http://www.activexperts.co
Select allOpen in new window