Tech Support > Microsoft Windows > Changing a string value in the registry using a .reg file
Changing a string value in the registry using a .reg file
Posted by Jerry Manner on December 23rd, 2005


Hi

I probably should'nt ask this question in this forum, but I could not
find the proper forum/discussion to ask this and I really need to
figure this out very urgent.

I want to use a .reg file to make changes in the registry. I am trying
to change the (Default) string value that can be found at the top of
every key. I am not able to do this . I use the following code in my
..reg file to achieve this.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Lotus
Notes\Shell\Open\Command]
"(Default)"="C:\\Program Files\\Lotus\\notes\\notes.exe
=i:\\Notes\\notes.ini"

But instead of changing the (Default) string value it adds a double
string value called (Default). How can I change the (Default) string
value using the .reg file??

Thank in advance

Posted by Ramesh, MS-MVP on December 23rd, 2005


Jerry,

Use the @ symbol. Best way is to create the necessary key/value in the
registry, and then export that key to a REG file.

- - -

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Lotus Notes\shell\open]
@="C:\\Program Files\\Lotus\\notes\\notes.exe"

- - -

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

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


"Jerry Manner" <goodminded@hotmail.com> wrote in message
news:1135355684.844055.305140@o13g2000cwo.googlegr oups.com...
Hi

I probably should'nt ask this question in this forum, but I could not
find the proper forum/discussion to ask this and I really need to
figure this out very urgent.

I want to use a .reg file to make changes in the registry. I am trying
to change the (Default) string value that can be found at the top of
every key. I am not able to do this . I use the following code in my
..reg file to achieve this.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Lotus
Notes\Shell\Open\Command]
"(Default)"="C:\\Program Files\\Lotus\\notes\\notes.exe
=i:\\Notes\\notes.ini"

But instead of changing the (Default) string value it adds a double
string value called (Default). How can I change the (Default) string
value using the .reg file??

Thank in advance



Similar Posts