Author Topic: Context menu "new" Windows 11 22H2 22621.521  (Read 20408 times)

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Context menu "new" Windows 11 22H2 22621.521
« on: September 30, 2022, 16:53:08 »
Hi Mathias,

first pic is default Windows Explorer menu, second is MultiCommander menu.
Miss some items for "new"
1. Bitmap
2. Text file

Hint: Clean install of Windows 11 - no upgrade from Windows 10
« Last Edit: November 05, 2022, 14:20:39 by User_99 »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4400
    • View Profile
    • Multi Commander
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #1 on: October 04, 2022, 08:13:12 »
Hard to say why they do not show up for you. I get them to show up on all my machines.
All 'new items' for the shell context menu are parsed from the registry (HKEY_CLASSES_ROOT) depending on if they have a ShellNew/ entry.. eg   

HKEY_CLASSES_ROOT\.bmp\ShellNew\
or
HKEY_CLASSES_ROOT\.txt\ShellNew\

There is also one other way Apps add a ShellNew item bu adding a reference to default item and then have ShellNew under that..



User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #2 on: October 16, 2022, 09:18:50 »
OK, these items are not available.

What is the correct syntax eg. for .txt?

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.txt\ShellNew]
"FileName"="C:\Windows\notepad.exe"
« Last Edit: October 16, 2022, 09:56:06 by User_99 »

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #3 on: October 16, 2022, 16:43:47 »
For HKEY_CLASSES_ROOT\.txt\ShellNew\:

the Key (type REG_EXPAND_SZ) name is: ItemName

data is : @%SystemRoot%\system32\notepad.exe,-470

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #4 on: October 21, 2022, 16:33:31 »
@AlanJB
Thx for your suggestion.

For HKEY_CLASSES_ROOT\.bmp\ShellNew\

the Key (type REG_EXPAND_SZ) name is: ItemName

data is : @%SystemRoot%\system32\notepad.exe,-470

Unfortunatelly it won't work. Reg keys are available, but still missing in context menu.


Found some forum posts for other file commanders like TC or FreeCommander from users with same problem. In both cases the developers solved the problem.

Hint/TC Changelog: Still no entry for .txt files in Context menu-New submenu on Windows because the key HKEY_CLASSES_ROOT\txtfilelegacy was missing a (default) value = description

I really don't know what this "default value" could be.
« Last Edit: October 21, 2022, 20:51:34 by User_99 »

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #5 on: October 21, 2022, 18:07:17 »
Hint/TC Changelog: Still no entry for .txt files in Context menu-New submenu on Windows because the key HKEY_CLASSES_ROOT\txtfilelegacy was missing a (default) value = description

I really don't know what this "default) value" could be.

Try
Code: [Select]
Text Document (works for me).

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #6 on: October 21, 2022, 20:52:53 »
Do you have the complete key for me?

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #7 on: October 22, 2022, 13:38:35 »
Hi @User_99.

Here is the regedit export for HKEY_CLASSES_ROOT\txtfile:
(Default) is Text Document in my case.

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\txtfile]
@="Text Document"
"EditFlags"=dword:00010000
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
  00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
  32,00,5c,00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,\
  00,2c,00,2d,00,34,00,36,00,39,00,00,00

[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@="C:\\Program Files\\IDM Computer Solutions\\UltraEdit\\uedit64.exe,1"

[HKEY_CLASSES_ROOT\txtfile\shell]

[HKEY_CLASSES_ROOT\txtfile\shell\open]

[HKEY_CLASSES_ROOT\txtfile\shell\open\Command]
@="C:\\Windows\\NOTEPAD.EXE %1"

[HKEY_CLASSES_ROOT\txtfile\shell\print]

[HKEY_CLASSES_ROOT\txtfile\shell\print\command]
@=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,49,00,44,00,4d,00,20,00,43,00,6f,00,\
  6d,00,70,00,75,00,74,00,65,00,72,00,20,00,53,00,6f,00,6c,00,75,00,74,00,69,\
  00,6f,00,6e,00,73,00,5c,00,55,00,6c,00,74,00,72,00,61,00,45,00,64,00,69,00,\
  74,00,5c,00,75,00,65,00,64,00,69,00,74,00,36,00,34,00,2e,00,65,00,78,00,65,\
  00,22,00,20,00,2f,00,70,00,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_CLASSES_ROOT\txtfile\shell\printto]

[HKEY_CLASSES_ROOT\txtfile\shell\printto\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,\
  74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,70,00,74,\
  00,20,00,22,00,25,00,31,00,22,00,20,00,22,00,25,00,32,00,22,00,20,00,22,00,\
  25,00,33,00,22,00,20,00,22,00,25,00,34,00,22,00,00,00


And this is for HKEY_CLASSES_ROOT\.txt:
(Default) is UltraEdit.txt in my case.

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.txt]
@="UltraEdit.txt"
"Content Type"="text/plain"
"PerceivedType"="text"

[HKEY_CLASSES_ROOT\.txt\OpenWithProgids]
"soffice.StarCalcDocument.6"=" "
"soffice.StarWriterDocument.6"=" "
"UltraEdit.txt"=""

[HKEY_CLASSES_ROOT\.txt\PersistentHandler]
"OriginalPersistentHandler"="{5E941D80-BF96-11CD-B579-08002B30BFEB}"

[HKEY_CLASSES_ROOT\.txt\ShellNew]
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
  2d,00,34,00,37,00,30,00,00,00
"NullFile"=""

And this is for HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile:
(Default) is Text Document in my case.

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile]
@="Text Document"
"FriendlyTypeName"=hex(2):40,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,2c,00,2d,00,31,00,38,00,39,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\open\command]
@=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,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\print]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\print\command]
@=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,20,00,2f,00,70,00,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\printto]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\textfile\shell\printto\command]
@=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,20,00,2f,00,70,00,74,00,20,00,22,00,25,00,31,00,22,00,20,00,22,\
  00,25,00,32,00,22,00,20,00,22,00,25,00,33,00,22,00,20,00,22,00,25,00,34,00,\
  22,00,00,00

I don't not have an entry for HKEY_CLASSES_ROOT\txtfilelegacy.

Here are a couple of utilities you may find useful (I've used them for years - completely trustworthy):

https://www.nirsoft.net/utils/regscanner.html

https://www.nirsoft.net/utils/file_types_manager.html

Also, this tutorial may offer something (you could dissect/study the .reg files):

https://www.tenforums.com/tutorials/24412-add-remove-default-new-context-menu-items-windows-10-a.html


User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #8 on: October 22, 2022, 21:24:10 »
@AlanJB

Thx very much for you're effort. Will check the keys.

Think your're using Windows 10?

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #9 on: October 23, 2022, 14:14:20 »
@AlanJB

Thx very much for you're effort. Will check the keys.

Think your're using Windows 10?

You're welcome - hope some of it helps.

No: Win7 Pro x64

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #10 on: October 28, 2022, 13:45:46 »
@User_99, did you resolve this?

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #11 on: October 28, 2022, 17:32:38 »
Hi, unfortunately not.

Installed MC on three clean Windows 11 systems and got there the same behaviour...

AlanJB

  • VIP Member
  • *****
  • Posts: 433
  • VERY old Programmer
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #12 on: October 29, 2022, 12:04:06 »
Oh - that's a shame.

If I stumble across anything else relevant I'll post here.

Good luck.

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #13 on: October 29, 2022, 21:17:20 »
Thx for your effort.

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #14 on: November 05, 2022, 16:37:32 »
Hard to say why they do not show up for you. I get them to show up on all my machines.
I have the item in Windows 10, but not in Windows 11. Clean install...

Which OS version do you use for "all my machines"

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4400
    • View Profile
    • Multi Commander
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #15 on: November 07, 2022, 18:14:59 »
Hard to say why they do not show up for you. I get them to show up on all my machines.
I have the item in Windows 10, but not in Windows 11. Clean install...

Which OS version do you use for "all my machines"

Windows 7,10,11 upgraded from 10

User_99

  • Active Member
  • ***
  • Posts: 81
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #16 on: November 10, 2022, 17:38:07 »
Ok, tried it again with a clean Windows 11 installation. No other editor ex. UltraEdit, .. installed
Only latest MC installed - and item is not available.

So Mathias, on your Windows 11 client, what ate your reg items for txt-files?

HKEY_CLASSES_ROOT\.txt\
and
HKEY_CLASSES_ROOT\txtfilelegacy
« Last Edit: November 10, 2022, 17:40:11 by User_99 »

shmuelw

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #17 on: March 20, 2023, 10:18:21 »
I have the same problem. This is the New submenu in Windows:



And this is the New submenu in Multi Commander:



PLEASE fix this. It's really annoying. I like to create text files for notes.

shmuelw

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: Context menu "new" Windows 11 22H2 22621.521
« Reply #18 on: March 20, 2023, 10:21:11 »
I have the same problem.

Attached are the two screen captures of Windows and Multi Commander.

PLEASE fix this. It's really annoying. I like to create text files for notes.