Solved

Renaming registry subkey

Posted on 1998-03-27
4
503 Views
Last Modified: 2013-11-20
How to rename a registry subkey?
0
Comment
Question by:bobdesign
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:dabbler
ID: 1317281
You can't do this--you'll have to create a new subkey with the new name you want, copy all of the info for the old subkey (recursively), then delete the old subkey (recursively, if on NT).
0
 

Expert Comment

by:gmain
ID: 1317282
Are you trying to do this programmatically or manually?
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 20 total points
ID: 1317283
If you want to do it manually, right-click on the entry in the registry editor and chose "rename".  Then, just type the new name.

If you need to do it manually, you'll have to read, store, delete, and recreate the whole sub tree recursively. There's no way around it, and that's that. (In fact, that's what the registry editor is doing when you use it's rename command.)

.B ekiM

0
 

Author Comment

by:bobdesign
ID: 1317284
Yes, I need to do it in my program. Thank you all.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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