2

Okay, I am at my wits' end here. I want to create a .reg file which changes a value. I know how to do it manually, but however i search it i simply never find anything easily explaining the needed syntax to do it.

Change I want to apply

Change I want to apply

I want to change the displayed key to the value it already is changed to in the picture.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command]

What 's the last line I have to add to this?

1 Answer 1

3

Use:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command]
@="\"C:\\Program Files (x86)\\Notepad++\\Notepad++.exe\" \"%1\""

This article has good info on how to make .REG files.

How to add, modify, or delete registry subkeys and values by using a .reg file

4
  • So, you've forgotten to add a \" . It has to be @="\"C:\\Program Files (x86)\\Notepad++\\Notepad++.exe\" \"%1\""
    – Simmen
    Jul 30, 2016 at 15:23
  • Oops. Should have tested it. It's now fixed.
    – w32sh
    Jul 30, 2016 at 15:39
  • First of all, thanks for the answer. I stumbled upon the link you gave me before, but i couldn't make sense of it, therefore I asked again.
    – Simmen
    Jul 30, 2016 at 15:47
  • 2
    YW. BTW it's easier than that. Apply the settings manually, and then use File > Export option in Regedit.exe, to create a .REG file. @ denotes (default) entry.. (standard) in some non-English versions of Windows.
    – w32sh
    Jul 30, 2016 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .