.reg file

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

How to create .reg file which will add a string value to the existing key,
without replacing the whole key?
Jack
 
How to create .reg file which will add a string value to the existing key,
without replacing the whole key?

By creating a .reg file. Seriously, I'm pretty sure you can only delete an
entire key using a .reg file, not a single value. So unless you're TRYING to
delete a key, you won't.
 
Jeff said:
By creating a .reg file. Seriously, I'm pretty sure you can only delete an
entire key using a .reg file, not a single value. So unless you're TRYING to
delete a key, you won't.

You can delete Keys or single Values with a .reg file.

John
 
It tells you in the link that Ralph gave you.

This will add SillyBilly value to HKCU\Control Panel without removing
other keys or values:

==========================================
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel]
"SillyBilly"=""
==========================================



To add SillyData to the value Data:

==========================================
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel]
"SillyBilly"="SillyData"
==========================================



To confirm that merging .reg files leaves other keys and values intact,
after merging the above key do another merge with this one:

==========================================
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel]
"RageddyAnn"="KnowsBetter"
==========================================

Now look in the registry at HKCU\Control Panel and see for yourself what
the merge did.

Try it and see! You won't hurt anything by merging the above to the
registry, the entries do nothing and they will simply be ignored, delete
them after your little test.

John
 
Jack said:
How to ADD a value, John?
You are very enigmatic on the subject.
Jack

"enigmatic"???

At this point it is your question and response that is rather puzzling.

Are you perhaps attempting to 'concatnate' a string value? eg, 'add' or
'append' something to an existing value?
...\ExistingKey\"Existing Value"
new ...
...\ExistingKey\"Existing Value plus new stuff"

In which case you will need to first capture the existing value.
 
You can delete Keys or single Values with a .reg file.

Interesting. I had never seen this before I read the KB article Ralph
pointed to:

"To delete a registry value with a .reg file, put a hyphen (-) after the
equals sign following the DataItemName in the .reg file."

Yet according to the Applies To list it works at least as far back as
Windows 98. Wonder if maybe it didn't work in 95 and that's where my
original knowledge comes from.
 
Back
Top