cannot add a value in registry entry, pls help

  • Thread starter Thread starter QuincyXiang
  • Start date Start date
Q

QuincyXiang

Hi,

I just want to add a value to the registry entry via regedit /s, but
always failed and no error msg shown.

my reg file - aa.reg:
=====================================
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]

"Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
======================================

and I fire regedit /s aa.reg, then I checked the registry, it didn't
work, no entry was added.
For testing, I changed my reg file as below:
=====================================
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]

"Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
"Description"="for the use of RMI server registry"
======================================

and run again, this time I found the value "Detecription" is added but
not the "Application", why?
Is the format wrong?
any help is appreciate.
 
Change it to;

"Application"="C:\\Program Files\\Java\\jre1.5.0_06\\bin\\rmiregistry.exe"

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Hi,
|
| I just want to add a value to the registry entry via regedit /s, but
| always failed and no error msg shown.
|
| my reg file - aa.reg:
| =====================================
| REGEDIT4
|
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]
|
| "Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
| ======================================
|
| and I fire regedit /s aa.reg, then I checked the registry, it didn't
| work, no entry was added.
| For testing, I changed my reg file as below:
| =====================================
| REGEDIT4
|
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]
|
| "Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
| "Description"="for the use of RMI server registry"
| ======================================
|
| and run again, this time I found the value "Detecription" is added but
| not the "Application", why?
| Is the format wrong?
| any help is appreciate.
|
 
I got another question: can I add a key to the registry via regedit /s?
boz now I can only add or modify value

my reg file:
=====================================
REGEDIT4

"[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MyRMIreg\Parameters]"
"Application"="C:\\Program Files\\Java\\jdk15004\\bin\\rmiregistry.exe"

======================================

There the key Parameters doesn't exist yet, I run this script and the
registry just add a value of "Application" under the entry MyRMIreg,
but what I want is to create a key "Parameters" under the entry
MyRMIreg and then add a value of "Application", any help?

Quincy
 
Resolved already, it's due to the quota mark :(


I got another question: can I add a key to the registry via regedit /s?
boz now I can only add or modify value

my reg file:
=====================================
REGEDIT4

"[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MyRMIreg\Parameters]"
"Application"="C:\\Program Files\\Java\\jdk15004\\bin\\rmiregistry.exe"

======================================

There the key Parameters doesn't exist yet, I run this script and the
registry just add a value of "Application" under the entry MyRMIreg,
but what I want is to create a key "Parameters" under the entry
MyRMIreg and then add a value of "Application", any help?

Quincy


Dave said:
You're welcome.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Yes, it works.
| Thanks a million, Dave.
 
Back
Top