New
#30
Thanks a lot Shawn, these registry keys you create are a lifesaver. For some reason the text document entry was removed after upgrading to version 2004. The only work I had to was translate the "Text Document" string under [HKEY_CLASSES_ROOT\txtfile] and voilą.
You need to run the following via elevated Command Prompt:
(REG ADD "HKCR\Data" /T REG_SZ /D "Name" /F)
Replace the above Data with the default value data of ".contact".
Replace the above Name with your preferred item name to be displayed on the menu.
If you want the item displayed above the separator line, run the following command:
(REG ADD "HKCR\.contact\ShellNew\Config" /V "BeforeSeparator" /F)
That is how I add an item into the "New" context menu in the following example:
How to Add Create Elevated Shortcut to New Context Menu in Windows 10
Run the following and see whether My contact appears.
(REG ADD "HKCR\Contato" /T REG_SZ /D "My contact" /F)
Note that the above Contato must be the default value data of "HKCR\.contact".
It worked, thank you
Hi Shawn:
I used your Restore_New_Rich_Text_Document_context_menu_item.reg to create a context menu option for a new .rtf file. Thank you very much...it works great.
I noticed that your reg file used:
[HKEY_CLASSES_ROOT\rtffile\DefaultIcon]@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\ 00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\ 4e,00,54,00,5c,00,41,00,63,00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,\ 00,73,00,5c,00,57,00,4f,00,52,00,44,00,50,00,41,00,44,00,2e,00,45,00,58,00,\ 45,00,22,00,2c,00,31,00,00,00
However, I wanted to change the default icon for it. I have a bunch of icons that I use & so I tried to modify it by using:
"C:\Users\Phil\Documents\Icons\WORDPAD.EXE, 1.ico"
So I changed it using both File Types Manager & also by editing it directly in HKEY_CLASSES_ROOT\rtffile\DefaultIcon. However, the icon didn't change. I suspect that it's because yours is a hex file & mine is a string value, but I'm not sure.
Is there a way for me to change it to point to the file that I want?
Thanks for all the wonderful work that you do?
Hello phrab,
It doesn't change the icon for me either for .rtf files even when just deleting the key and value.
File Extension Icon - Change Default Icon - Windows 7 Help Forums