PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jerry Manner
Guest
Posts: n/a
 
      23rd Dec 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

 
Reply With Quote
 
 
 
 
David H. Lipman
Guest
Posts: n/a
 
      23rd Dec 2005
From: "Jerry Manner" <(E-Mail Removed)>

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


--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


 
Reply With Quote
 
Jerry Manner
Guest
Posts: n/a
 
      24th Dec 2005
|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

 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      24th Dec 2005
In microsoft.public.win2000.registry Jerry Manner wrote:

>|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.
 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      24th Dec 2005
On 23 Dec 2005 08:40:43 -0800, "Jerry Manner" <(E-Mail Removed)> wrote:

>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
 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      24th Dec 2005
On 24 Dec 2005 01:43:45 -0800, "Jerry Manner" <(E-Mail Removed)> wrote:

>|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
 
Reply With Quote
 
David H. Lipman
Guest
Posts: n/a
 
      24th Dec 2005
From: "Jerry Manner" <(E-Mail Removed)>

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

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing a string value in the registry using a .reg file Jerry Manner Windows XP General 1 23rd Dec 2005 04:43 PM
Changing Registry with .REG file see.cher@your.place Windows XP General 2 18th Sep 2005 04:32 PM
Changing a file string in My Documents =?Utf-8?B?bmV3IHRvIFhQ?= Windows XP Basics 3 18th Mar 2005 01:05 AM
Using a Confiuration File or Registry to Store ADO Connection String Mark Holahan Microsoft Access ADP SQL Server 1 20th Feb 2005 06:04 PM
Changing File Associations via the Registry mikeo Microsoft Windows 2000 Security 1 13th Aug 2003 09:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 AM.