How to modify NEW context menu or cm_editfilemenu?
Moderators: Hacker, petermad, Stefan2, white
How to modify NEW context menu or cm_editfilemenu?
(Windows 10 and 64bit TC 9.10 final)
If you open a folder in TC and right click in blank area for a second, you can access the "new" context menu. The other way is to use command line: cm_editfilemenu. How to modify these menus?
I found
https://superuser.com/questions/688665/change-name-description-in-windows-context-menu
and
https://stackoverflow.com/questions/6257543/adding-new-filetypes-to-windows-7s-new-context-menu
They work fine in Windows Explorer, but that doesn't seem to affect Total Commander. The menus changed instantly in Windows Explorer after the modification, but did not change in Total Commander even after I restart my computer.
Any suggestions? Thanks.
If you open a folder in TC and right click in blank area for a second, you can access the "new" context menu. The other way is to use command line: cm_editfilemenu. How to modify these menus?
I found
https://superuser.com/questions/688665/change-name-description-in-windows-context-menu
and
https://stackoverflow.com/questions/6257543/adding-new-filetypes-to-windows-7s-new-context-menu
They work fine in Windows Explorer, but that doesn't seem to affect Total Commander. The menus changed instantly in Windows Explorer after the modification, but did not change in Total Commander even after I restart my computer.
Any suggestions? Thanks.
Last edited by 20120708 on 2017-10-30, 12:14 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50865
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Micrsoft didn't document well how these work, and the context menu requested via IContextMenu doesn't include the "New" submenu.
Total Commander looks for all "ShellNew" entries under HKEY_CLASSES_ROOT and builds the "New" submenu from them.
Total Commander looks for all "ShellNew" entries under HKEY_CLASSES_ROOT and builds the "New" submenu from them.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Problem solved. Thanks for your information.
Problem solved. Thanks for your information.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd374120.aspx
Method 1: You can keep the Redirected String, and change the destination value of that string (located elsewhere). This works only in Windows Explorer.
Method 2: Just delete the FriendlyTypeName under ShellNew and change the default value (doesn't need to be indirect string). This works for both Windows Explorer and Total Commander.

Results below:
Microsoft Word Document (.docx)-----→ Word Document (.docx)
Microsoft Access Database (.accdb)---→ Access Database (.accdb)
Microsoft Excel Sheet (.xlsx)-----------→ Excel Sheet (.xlsx)
文本文档 (.txt)---------------------------→ Text Document (.txt)
Say you asign cm_editfilemenu a hotkey, like Ctrl+N. Then you can create Word by pressing Ctrl+N and then W, or you can create Text Document by pressing Ctrl+N and then T. This way is quicker than using Shift+F4 or Ctrl+N then Arrow keys and Enter. Yeah.

https://msdn.microsoft.com/en-us/library/windows/desktop/dd374120.aspx
Method 1: You can keep the Redirected String, and change the destination value of that string (located elsewhere). This works only in Windows Explorer.
Method 2: Just delete the FriendlyTypeName under ShellNew and change the default value (doesn't need to be indirect string). This works for both Windows Explorer and Total Commander.

Results below:
Microsoft Word Document (.docx)-----→ Word Document (.docx)
Microsoft Access Database (.accdb)---→ Access Database (.accdb)
Microsoft Excel Sheet (.xlsx)-----------→ Excel Sheet (.xlsx)
文本文档 (.txt)---------------------------→ Text Document (.txt)
Say you asign cm_editfilemenu a hotkey, like Ctrl+N. Then you can create Word by pressing Ctrl+N and then W, or you can create Text Document by pressing Ctrl+N and then T. This way is quicker than using Shift+F4 or Ctrl+N then Arrow keys and Enter. Yeah.

- ghisler(Author)
- Site Admin
- Posts: 50865
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Can you give an example of Method 1? Which registry key did you change which was picked up by Explorer but not by Total Commander?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How to modify NEW context menu or cm_editfilemenu?
I have a similar issue: BitDefender’s contextual scan is present under Windows Explorer, but not in Total Commander
Re: How to modify NEW context menu or cm_editfilemenu?
BitDefender shows this only when invoked from Explorer.f13 wrote: 2022-03-31, 07:26 UTC I have a similar issue: BitDefender’s contextual scan is present under Windows Explorer, but not in Total Commander
Change totalcmd.exe or totalcmdx64.exe into Explorer.exe and you will see.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: How to modify NEW context menu or cm_editfilemenu?
Thank you, I have tried this, but it did not work. BitDefender is still missing from Context menu
Horst.Epp wrote: 2022-03-31, 08:13 UTCBitDefender shows this only when invoked from Explorer.f13 wrote: 2022-03-31, 07:26 UTC I have a similar issue: BitDefender’s contextual scan is present under Windows Explorer, but not in Total Commander
Change totalcmd.exe or totalcmdx64.exe into Explorer.exe and you will see.
Re: How to modify NEW context menu or cm_editfilemenu?
This worked fine some time ago.f13 wrote: 2022-03-31, 08:54 UTC Thank you, I have tried this, but it did not work. BitDefender is still missing from Context menu
Horst.Epp wrote: 2022-03-31, 08:13 UTCBitDefender shows this only when invoked from Explorer.f13 wrote: 2022-03-31, 07:26 UTC I have a similar issue: BitDefender’s contextual scan is present under Windows Explorer, but not in Total Commander
Change totalcmd.exe or totalcmdx64.exe into Explorer.exe and you will see.
I no longe run BitDefender.
If they changed their logic you can try to create your own context menu
with a tool like Easy Context Menu
https://www.sordum.org/7615/easy-context-menu-v1-6/
and add a BitDefender scan command line with it.
I don't know if they still provide such a command line tool.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: How to modify NEW context menu or cm_editfilemenu?
Yes, renaming it to Explorer.exe no longer works. And unfortunately they no longer provide a command line tool, I think that’s exclusive to Gravity Endpoint Security now. In any case, thank you for taking the time to reply!
Horst.Epp wrote: 2022-03-31, 10:30 UTCThis worked fine some time ago.f13 wrote: 2022-03-31, 08:54 UTC Thank you, I have tried this, but it did not work. BitDefender is still missing from Context menu
Horst.Epp wrote: 2022-03-31, 08:13 UTC
BitDefender shows this only when invoked from Explorer.
Change totalcmd.exe or totalcmdx64.exe into Explorer.exe and you will see.
I no longe run BitDefender.
If they changed their logic you can try to create your own context menu
with a tool like Easy Context Menu
https://www.sordum.org/7615/easy-context-menu-v1-6/
and add a BitDefender scan command line with it.
I don't know if they still provide such a command line tool.