Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding new filetypes to Windows 7's New context menu

I'm trying to add CSS, PHP, JS and HTML file types to the "New" right click menu in Windows 7. I know how to add the file types to the menu with ShellNew entries in the registry. But Windows doesn't give you any control over the display names of the new items - according to this the name's always taken from whatever application you've assigned to open the doc. I've set Notepad++ to open all of these file types, so I'm going to end up with several identical "Notepad++ document" entries in the menu, like this:

Windows Explorer context menu

Does anybody know if there's a way out of this stupid situation without installing any tweak utilities?

Thanks all! Fred

like image 843
And Finally Avatar asked Jun 06 '11 20:06

And Finally


1 Answers

To rename a context menu > new's item (in Windows 7, at least):

  1. Open regedit.
  2. Go to HKEY_CLASSES_ROOT\.%ext% and note the (Default) value. This is the file extension's ProdID.
  3. Go to HKEY_CLASSES_ROOT\%ProdID% (usually %ext%file) using the value obtained from step two. Set the (Default) value to whatever you would like the context menu new item to display as.
  4. Under HKEY_CLASSES_ROOT\%ProdID%, if there is a FriendlyTypeName value, rename it to FriendlyTypeName.old, as the (Default) value "is deprecated by the FriendlyTypeName entry"

I don't believe there is even a need to log out / restart, but if the changes don't take effect, log out and/or restart.

like image 110
mythofechelon Avatar answered Nov 15 '22 10:11

mythofechelon