开发者

Problem in adding string value to registry with .reg file

开发者 https://www.devze.com 2023-02-21 21:49 出处:网络
I\'m on win2k3 machine. I wrote a .reg file as below: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\KalleService\\Parameters]

I'm on win2k3 machine. I wrote a .reg file as below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
"Application"="C:\Projects\KalleService\Bin\KalleService.exe"

When double click the .reg file/say merge, it says registry modified successfully. But it has just created the Parameters key a开发者_StackOverflow中文版nd has not created Application string value.

What could be the problem?


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
"Application"="C:\\Projects\\KalleService\\Bin\\KalleService.exe"

try double slashes(\\) instead of single slash (\) in the string value.


try this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
@=" "
"Application"="\"C:\\Projects\\KalleService\\Bin\\KalleService.exe\""

or if this doesn't work make a key manually with a value and export it (a .reg file will be created)

open that file in notepad , modify that file with your values and then again save it. and then run it. Second way is not efficient but it will get your work done later if you do this

0

精彩评论

暂无评论...
验证码 换一张
取 消