Solved

Renaming registry subkey

Posted on 1998-03-27
4
500 Views
Last Modified: 2013-11-20
How to rename a registry subkey?
0
Comment
Question by:bobdesign
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

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 …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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