HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP > Windows XP Basics

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2008, 02:42 AM
Jack
 
Posts: n/a
Default .reg file

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


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 07-17-2008, 02:51 AM
mayayana
 
Posts: n/a
Default Re: .reg file

If you want to do it in VB you don't need a
..reg file. See the RegSetValueEx function.
There are probably good samples at Randy
Birch's site:
http://vbnet.mvps.org/

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



Reply With Quote
  #3  
Old 07-17-2008, 02:52 AM
Ralph
 
Posts: n/a
Default Re: .reg file


"Jack" <replyto@it> wrote in message
news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl...
> How to create .reg file which will add a string value to the existing key,
> without replacing the whole key?
> Jack
>


You probably need to provide more information as adding and deleting, keys
and values is a very straight-forward process:
http://support.microsoft.com/kb/310516

What is it, you are really trying to do?

-ralph


Reply With Quote
  #4  
Old 07-17-2008, 04:40 AM
Jeff Johnson
 
Posts: n/a
Default Re: .reg file

"Jack" <replyto@it> wrote in message
news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl...

> 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.


Reply With Quote
  #5  
Old 07-17-2008, 11:21 AM
John John (MVP)
 
Posts: n/a
Default Re: .reg file

Jeff Johnson wrote:
> "Jack" <replyto@it> wrote in message
> news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl...
>
>
>>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.


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

John

Reply With Quote
  #6  
Old 07-17-2008, 03:07 PM
Jack
 
Posts: n/a
Default Re: .reg file

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

"John John (MVP)" <audetweld@nbnet.nb.ca> wrote in message
news:OgB0f8$5IHA.1176@TK2MSFTNGP02.phx.gbl...
> Jeff Johnson wrote:
>> "Jack" <replyto@it> wrote in message
>> news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl...
>>
>>
>>>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.

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



Reply With Quote
  #7  
Old 07-17-2008, 03:50 PM
John John (MVP)
 
Posts: n/a
Default Re: .reg file

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 wrote:

> How to ADD a value, John?
> You are very enigmatic on the subject.
> Jack
>
> "John John (MVP)" <audetweld@nbnet.nb.ca> wrote in message
> news:OgB0f8$5IHA.1176@TK2MSFTNGP02.phx.gbl...
>
>>Jeff Johnson wrote:
>>
>>>"Jack" <replyto@it> wrote in message
>>>news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl. ..
>>>
>>>
>>>
>>>>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.

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

>
>
>

Reply With Quote
  #8  
Old 07-17-2008, 03:57 PM
Ralph
 
Posts: n/a
Default Re: .reg file


"Jack" <replyto@it> wrote in message
news:uC7Sd7B6IHA.4988@TK2MSFTNGP04.phx.gbl...
> 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.


Reply With Quote
  #9  
Old 07-17-2008, 04:15 PM
Ramesh, MS-MVP
 
Posts: n/a
Default Re: .reg file

How to add, modify, or delete registry subkeys and values by using a
registration entries (.reg) file:
http://support.microsoft.com/kb/310516
(Examples are provided).

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
The Winhelponline Blog: http://www.winhelponline.com/blog
Windows® Troubleshooting: http://www.winhelponline.com


"Jack" <replyto@it> wrote in message
news:%232mIKb75IHA.1280@TK2MSFTNGP02.phx.gbl...
> How to create .reg file which will add a string value to the existing key,
> without replacing the whole key?
> Jack
>



Reply With Quote
  #10  
Old 07-17-2008, 05:47 PM
Jeff Johnson
 
Posts: n/a
Default Re: .reg file

"John John (MVP)" <audetweld@nbnet.nb.ca> wrote in message
news:OgB0f8$5IHA.1176@TK2MSFTNGP02.phx.gbl...

>> 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.


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.


Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Notepad-open a txt file/make change/save/reopen and file is garbag Brenda Windows XP 5 11-14-2007 03:34 PM
Folder Options/File Types/Advanced/Edit File Type not working Scott Leslie Windows XP 2 10-21-2007 11:51 PM
Opening Word or Excel file from file shortcut opens Word or Excel program, but not the file betel11geuse@gmail.com Microsoft Office 1 10-01-2007 01:31 PM
During Save, File turns from a listed file to a .tmp file DSG Windows XP 4 08-11-2007 09:22 PM
save file on shared drive, file name corrupted but not file jgos1@earthlink.net Windows XP 7 06-08-2007 07:30 PM


All times are GMT. The time now is 04:37 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger