Changing a string value in the registry using a .reg file

J

Jerry Manner

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
 
D

David H. Lipman

From: "Jerry Manner" <[email protected]>

| 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

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\LotusNotes\Shell\Open\Command]
@="C:\\Program Files\\Lotus\\notes\\notes.exe=i:\\Notes\\notes.ini"
 
J

Jerry Manner

|Windows Registry Editor Version 5.00


|[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\LotusNotes\Shell\Open\Command]

|@="C:\\Program Files\\Lotus\\notes\\notes.exe=i:\\Notes\\notes.ini"


Hi

Thank you for replying. It worked , like you said!!

I have 1 more question. I want the string value to look like this in
the registry:

"C:\\Program Files\\Lotus\\notes\\notes.exe" "=i:\\Notes\\notes.ini"

How should the code look like in the .reg file to make the string value
look like that in the registry?

Regards
 
M

Mark V

In said:
|Windows Registry Editor Version 5.00


|[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\LotusNotes\Shell\Open\C
|ommand]

|@="C:\\Program
|Files\\Lotus\\notes\\notes.exe=i:\\Notes\\notes.ini"


Hi

Thank you for replying. It worked , like you said!!

I have 1 more question. I want the string value to look like
this in the registry:

"C:\\Program Files\\Lotus\\notes\\notes.exe" "=i:\\Notes\\notes.ini"

How should the code look like in the .reg file to make the
string value look like that in the registry?

One might just enter it via regedit, then Export it to a REG
file and look...

If you mean *literally* the string you show,

[REDETIT4]

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


but I suspect there is no practical useage for such a string.
The point is however, that each backslash is escaped with a backslash
and the dbl-quote is also escaped with a backslash.
 
J

Jerold Schulman

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

Windows Registry Editor Version 5.00

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

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
J

Jerold Schulman

|Windows Registry Editor Version 5.00


|[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\LotusNotes\Shell\Open\Command]

|@="C:\\Program Files\\Lotus\\notes\\notes.exe=i:\\Notes\\notes.ini"


Hi

Thank you for replying. It worked , like you said!!

I have 1 more question. I want the string value to look like this in
the registry:

"C:\\Program Files\\Lotus\\notes\\notes.exe" "=i:\\Notes\\notes.ini"

How should the code look like in the .reg file to make the string value
look like that in the registry?

Regards

@="\"C:\\\\Program Files\\\\Lotus\\\\notes\\\\notes.exe\" \"=i:\\\\Notes\\\\notes.ini\""

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
D

David H. Lipman

From: "Jerry Manner" <[email protected]>

|> Windows Registry Editor Version 5.00
|
|> [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\LotusNotes\Shell\Open\Command]
|
|> @="C:\\Program Files\\Lotus\\notes\\notes.exe=i:\\Notes\\notes.ini"
|
| Hi
|
| Thank you for replying. It worked , like you said!!
|
| I have 1 more question. I want the string value to look like this in
| the registry:
|
| "C:\\Program Files\\Lotus\\notes\\notes.exe" "=i:\\Notes\\notes.ini"
|
| How should the code look like in the .reg file to make the string value
| look like that in the registry?
|
| Regards

Since you posted this in a Win98 News Group the REG file needs to be as below...

Also from my research I found the Key is not.. "Mail\LotusNotes" it is "Mail\Lotus Notes"

REGEDIT4

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

or

REGEDIT4

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


or


REGEDIT4

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


So it will all depend on what YOU are trying to do, what platforms you need to do it on
(Win9x/ME and Win2K/WinXP or just Win2K/WinXP) and what Lotus Notes actually is looking for
in the Registry to find the notes configuration file.
 

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