Solved

Registry Manipulation

Posted on 2001-06-29
6
433 Views
Last Modified: 2012-05-04
Hello

I'd like to copy a registry key. I tried to use the movekey command from Borlant C++ Builder but I can't copy from a root key to another.

ie I'd like to copy a key from HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER

How could I do ????????????
Help me please, thanks

Waxman
0
Comment
Question by:waxman2
6 Comments
 
LVL 6

Expert Comment

by:MichaelS
ID: 6237837
Do you think that your question is 50 times easie than an easy one? On that site the easy question worth 50 points
0
 
LVL 1

Expert Comment

by:ccaprar
ID: 6237865
What about giving more points fore the question ......
0
 
LVL 1

Expert Comment

by:ccaprar
ID: 6237867
What about giving more points for the question ......
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
ID: 6240327
Seems me, that movekey works only in one Root Directory.
You need:
1. Get registry key value.
2. Delete (if you want) from old place
3. Add in new place(after changing RootKey property)
See more details in TRegistry component Help.
0
 

Author Comment

by:waxman2
ID: 6240475
--> Alex

You're right, it is the method I used. But there is over 60 values in this key
So, I can't do it one after one

Actually, I decided to use
 for (n=1;n<='number of value in the key';n++)

it's a bit easier.......
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6240545
>>it's a bit easier
Well, you are right, and I don't see easier
method. Of course, you can use direct Windows Api
for work with registry, but it is more complex.
Now, is I reply tou your Q?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question