Problem in adding string value to registry with .reg file

10,583
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.

Share:
10,583

Related videos on Youtube

Morin
Author by

Morin

Updated on May 26, 2022

Comments

  • Morin
    Morin almost 2 years

    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 and has not created Application string value.

    What could be the problem?

  • Morin
    Morin about 13 years
    Thanx. Meanwhile, I too discoverd the same thing.
  • JinSnow
    JinSnow over 5 years
    @Sarfraz @="C:\\Users\\.....test.ps1" "%1" does not work (data field is empty), any idea why?