Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.

This is my first post at this site. Seems like a cool place.


There is a right click menu in Windows for quickly creating files with certain file extension types.

I figured out how to add specific filetypes here for easy file creation as well ass how to add previously defined entries in the newly created file.

But, the name that you give to the entry, is also the name that the file is created with. I tried all kinds of registry edits but I can not make the context menu entries name SEPARATE than the one that the file is created with.

So, basically it says right now in the menu "Windows Registry File" and when I create the file, it says "New Windows Registry File.reg"

so I rename it then it says in the context menu "Windows Registry File (.reg)" and when I create the file it says "New Windows Registry File (.reg).reg"

But, I want it to say "New Windows Registry File.reg" only like before,
If there is a way to separate the naming of the newly created file from what is in the menu, (which is what it does by default). Then this is what we have to do.

Can anyone help with that?

What I have tried:

Editing the registry many times,
Posted
Comments
[no name] 12-Mar-19 11:25am    
Maybe there's a "wild card" feature (no idea), since you show "no registry keys / data".
Salvia the Sage 12-Mar-19 12:09pm    
[HKEY_CLASSES_ROOT\.reg\ShellNew]
"Data" = hex:FF,FE,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,52,00,65,\
00,67,00,69,00,73,00,74,00,72,00,79,00,20,00,45,00,64,00,69,00,74,00,6f,00,72,\
00,20,00,56,00,65,00,72,00,73,00,69,00,6f,00,6e,00,20,00,35,00,2e,00,30,00,30,\
00,0d,00,0a,00,0d,00,0a,00,3b,00,3b,00,20,00,63,00,6f,00,6d,00,6d,00,65,00,6e,\
00,74,00,20,00,72,00,65,00,73,00,65,00,72,00,76,00,65,00,64,00,0d,00,0a,00,0d,\
00,0a,00,5b,00,5d,00,0d,00,0a,00,0d,00,0a,00

[HKEY_CLASSES_ROOT\regfile]
"FriendlyTypeName" = hex(2):57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
52,00,65,00,67,00,69,00,73,00,74,00,72,00,79,00,20,00,46,00,69,00,6c,00,65,\
00,00,00

These two entries are all it takes to put the entry into the context menu, and it works.
Except, I have no way of renaming the created files to something different than what the context menu says.

I still think there may be some way to do this, but I just can't find it.
Michael Haephrati 18-May-19 9:37am    
Try this https://www.askvg.com/how-to-add-remove-items-from-new-menu-in-windows/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900