Solved

Registry Manipulation

Posted on 2001-06-29
6
426 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

777 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