I'm trying to create a program for editing the context menu of specific file/folder types. I was trying to use it to edit the .png
menu, but the added item isn't showing up.
As far as I'm aware, this should add an item with the label "aaa", but it doesn't appear to do anything
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\pngfile\shell\aaa\command]
@="aaa"
I've tried replacing pngfile
with png
and .png
with no success.
I can find plenty of posts about doing this in HKCR, but not in HKCU, which doesn't require admin privileges to edit. Well, no posts about in HKCU that work for me for whatever reason.
Bonus question: How would I find where I need to put the command for other file types, like .jpg
?
EDIT: Found the answer after a bit more searching
What I have to do:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*\shell\aaa]
@="aaa"
"AppliesTo"=".jpg"
and for .jpg and .png (Not tested, but this is what it says to do.)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*\shell\aaa]
@="aaa"
"AppliesTo"="System.FileName:\"*.jpg\" OR System.FileName:\"*.png\""
[HKEY_CURRENT_USER\Software\Classes\*\shell\aaa\command]
@="aaa"