How change a registry key-name from XP-MS-DOS ?

M

michelratipho

Hi,

How can I change from a ms-dos batch-file the key-name of a 1 registry
entry keeping the value intact. REG.EXE doesn't seem to have a
solution for this.
-----------regdump--------------
.....
"\\DosDevices\\D:"=hex:4c,03,4d,03,00,e0,c5,52,07,00,00,00
"\\DosDevices\\C:"=hex:4c,03,4d,03,00,7e,00,00,00,00,00,00
.....
-------------------------------------------
I need to be able to change D: with C: and C: with D:

PS: For who wants to know why: Using this +altering the
partitionnumber in BOOT.INI I can make a clone copy of the first
partition with SelfImage and boot from it without XP trying to start
the hidden NTFS 1e partition ;-) Off course I need to change it back
after cloning before booting the 1e original XP again...

Thanks.
 
P

Pegasus \(MVP\)

You probably have to do a three-step dance:
1. Extract the two values from the registry and save them.
2. Delete them from the registry.
3. Re-insert them under the new drive letter.

I think your scheme is rather fragile. Sooner or later the
registry will get out of step with boot.ini, which will result
in a looping logon process. A proper boot loader would
be much more robust. Also note that MS-DOS is an
operating system that went out of fashion many years
ago. WinXP has a Command Prompt that bears some
resemblance to MS-DOS but it certainly is not MS-DOS.
 
J

John John

You are dealing with two completely separate and independent registries.
What is in one registry when it is inactive matters nothing at all to
the other active registry. Changes made in Registry A will not make any
difference when you boot and use Registry B and vice-versa.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top