"New" submenu is different from Explorer's

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

"New" submenu is different from Explorer's

Post by *kapela86 »

When right clicking on empty space in TC and selecting "New", that submenu shows list of available new files that can be created. But that list is different that Explorer's list.
https://imgur.com/a/URduryo
First picture is from TC 11.02 and second is from Explorer. System is Windows 11 23H2 Pro Polish (I don't remember if this was missing in 22H2 or in Windows 10)
Notice that TC shows additional "Library" but doesn't show ".bmp" and ".txt" entries.
I checked these registry keys
HKEY_CLASSES_ROOT\.txt
HKEY_CLASSES_ROOT\.bmp
HKEY_CURRENT_USER\Software\Classes\.txt
HKEY_CURRENT_USER\Software\Classes\.bmp
and they don't have ShellNew entries.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "New" submenu is different from Explorer's

Post by *ghisler(Author) »

Total Commander has to build that by itself because requesting the context menu from the system does NOT include a "New" submenu. TC uses registry entries containing ShellNew to build the menu.

The .txt entry is added manually by TC when it's missing in the registry because Microsoft forgot adding it and people complained:
24.03.21 Fixed: Bug in Windows 10 21337 (developer preview), there is no more HKEY_CLASSES_ROOT\.txt\ShellNew key, but the Explorer still shows an entry in the "New" context menu. Solution: Always add an entry for .txt files on Windows 10 (32/64)
No idea what's going on with .bmp, I'm not getting an entry for it on Windows 11.
Please try my registryinfo tool and post the results here:
https://www.totalcommander.ch/win/tools/registryinfo.zip
Author of Total Commander
https://www.ghisler.com
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Re: "New" submenu is different from Explorer's

Post by *kapela86 »

Here you go

Code: Select all

[HKEY_CLASSES_ROOT\.bmp]
@="Paint.Picture"
"Content Type"="image/bmp"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\.bmp\OpenWithList]
[HKEY_CLASSES_ROOT\.bmp\OpenWithList\MSPaint.exe]
@=""
[HKEY_CLASSES_ROOT\.bmp\OpenWithProgids]
"AppX43hnxtbyyps62jhe9sqpdzxn1790zetc"=hex(0):
"AppXcdh38jxzbcberv50vxg2tg4k84kfnewn"=hex(0):
"AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj"=hex(0):
"AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39"=hex(0):
"AppXnz71596g9b912m7vp6p45teqa85x6x2d"=hex(0):
"GIMP2.bmp"=""
"LibreOffice.Bmp"=" "
[HKEY_CLASSES_ROOT\.bmp\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.bmp\shellex]
[HKEY_CLASSES_ROOT\.bmp\shellex\{00021500-0000-0000-C000-000000000046}]
@="{869C14C8-1830-491F-B575-5F9AB40D2B42}"
=============================
[HKEY_CLASSES_ROOT\Paint.Picture]
@="Paintbrush Picture"
"MsixRegistryCompatibility.WrittenBy"="Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe"
[HKEY_CLASSES_ROOT\Paint.Picture\CLSID]
@="{D3E34B21-9D75-101A-8C3D-00AA001A1652}"
[HKEY_CLASSES_ROOT\Paint.Picture\Insertable]
=============================
OpenWithProgIDs(0)="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc"
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc]
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Application]
"ApplicationName"="@{Microsoft.Windows.Photos_2023.11110.6001.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Resources/AppDisplayName}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.Windows.Photos_2023.11110.6001.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Images/Retail/PhotosAppList.png}"
"ApplicationDescription"="ms-resource:AppDescription"
"AppUserModelID"="Microsoft.Windows.Photos_8wekyb3d8bbwe!App"
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\DefaultIcon]
@="@{Microsoft.Windows.Photos_2023.11110.6001.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Images/Retail/PhotosLogoExtensions.png}"
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell]
@="open"
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\open]
"ActivatableClassId"="App.AppX65n3t4j73ch7cremsjxn7q8bph1ma8jw.mca"
"PackageId"="Microsoft.Windows.Photos_2023.11110.6001.0_x64__8wekyb3d8bbwe"
"ContractId"="Windows.File"
"DesiredInitialViewState"=dword:00000000
[HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\open\command]
"DelegateExecute"="{4ED3A719-CEA8-4BD9-910D-E252F997AFC2}"
=============================
OpenWithProgIDs(1)="AppXcdh38jxzbcberv50vxg2tg4k84kfnewn"
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn]
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn\Application]
"ApplicationName"="@{Microsoft.MSPaint_6.2305.16087.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.MSPaint/resources/AppName}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.MSPaint_6.2305.16087.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.MSPaint/Files/Assets/Logos/Square44x44/PaintAppList.png}"
"ApplicationDescription"="ms-resource:AppDescription"
"AppUserModelID"="Microsoft.MSPaint_8wekyb3d8bbwe!Microsoft.MSPaint"
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn\DefaultIcon]
@="@{Microsoft.MSPaint_6.2305.16087.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.MSPaint/Files/Assets/Logos/FileAssociation/FileAssociation.png}"
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn\Shell]
@="open"
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn\Shell\open]
"ActivatableClassId"="Microsoft.MSPaint.AppXgs61w2tvrtcs5mcyww07cva3wp5p36yw.mca"
"PackageId"="Microsoft.MSPaint_6.2305.16087.0_x64__8wekyb3d8bbwe"
"ContractId"="Windows.File"
"DesiredInitialViewState"=dword:00000000
[HKEY_CLASSES_ROOT\AppXcdh38jxzbcberv50vxg2tg4k84kfnewn\Shell\open\command]
"DelegateExecute"="{4ED3A719-CEA8-4BD9-910D-E252F997AFC2}"
=============================
OpenWithProgIDs(2)="AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj"
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj]
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Application]
"ApplicationName"="@{Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Paint/Resources/AppDisplayName}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Paint/Files/Assets/PaintAppList.png}"
"ApplicationDescription"="ms-resource:Resources/AppDescription"
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\DefaultIcon]
@="@{Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Paint/Files/Assets/paintpicture.png}"
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell]
@="Edit"
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\Edit]
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="PaintApp\mspaint.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\Edit\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe\PaintApp\mspaint.exe" "%1""
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\open]
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="PaintApp\mspaint.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\open\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe\PaintApp\mspaint.exe""
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\Print]
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="PaintApp\mspaint.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\Print\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe\PaintApp\mspaint.exe" /p "%1""
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\PrintTo]
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="PaintApp\mspaint.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj\Shell\PrintTo\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe\PaintApp\mspaint.exe" /pt "%1" "%2" "%3" "%4""
=============================
OpenWithProgIDs(3)="AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39"
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39]
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39\Application]
"ApplicationName"="@{Microsoft.ScreenSketch_11.2309.16.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.ScreenSketch/Resources/AppName/Text}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.ScreenSketch_11.2309.16.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.ScreenSketch/Files/Assets/SnippingToolAppList.png}"
"ApplicationDescription"="ms-resource:AppDescription"
"AppUserModelID"="Microsoft.ScreenSketch_8wekyb3d8bbwe!App"
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39\DefaultIcon]
@="@{Microsoft.ScreenSketch_11.2309.16.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.ScreenSketch/Files/Assets/FileAssociation/FileAssociation.png}"
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39\Shell]
@="open"
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39\Shell\open]
"AppUserModelID"="Microsoft.ScreenSketch_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="SnippingTool\SnippingTool.exe"
"DesktopAppXActivateOptions"=dword:00000020
"ContractId"="Windows.File"
"DesiredInitialViewState"=dword:00000000
"PackageId"="Microsoft.ScreenSketch_11.2309.16.0_x64__8wekyb3d8bbwe"
[HKEY_CLASSES_ROOT\AppXkcg7y8nhftqvy2sxh5grnx46hbybnk39\Shell\open\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.ScreenSketch_11.2309.16.0_x64__8wekyb3d8bbwe\SnippingTool\SnippingTool.exe""
=============================
OpenWithProgIDs(4)="AppXnz71596g9b912m7vp6p45teqa85x6x2d"
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d]
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d\Application]
"ApplicationName"="PhotoScape X"
"ApplicationCompany"="Mooii Tech"
"ApplicationIcon"="@{MooiiTech.PhotoScapeX_4.2.1.0_x64__f5eddttrpssna?ms-resource://MooiiTech.PhotoScapeX/Files/Assets/Square44x44Logo.png}"
"ApplicationDescription"="PhotoScape X"
"AppUserModelID"="MooiiTech.PhotoScapeX_f5eddttrpssna!MooiiTech.PhotoScapeX"
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d\DefaultIcon]
@="@{MooiiTech.PhotoScapeX_4.2.1.0_x64__f5eddttrpssna?ms-resource://MooiiTech.PhotoScapeX/Files/Assets/Square44x44Logo.png}"
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d\Shell]
@="open"
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d\Shell\open]
"AppUserModelID"="MooiiTech.PhotoScapeX_f5eddttrpssna!MooiiTech.PhotoScapeX"
"PackageRelativeExecutable"="PhotoScapeX\PhotoScapeX.exe"
"DesktopAppXActivateOptions"=dword:00000020
"ContractId"="Windows.File"
"DesiredInitialViewState"=dword:00000000
"PackageId"="MooiiTech.PhotoScapeX_4.2.1.0_x64__f5eddttrpssna"
[HKEY_CLASSES_ROOT\AppXnz71596g9b912m7vp6p45teqa85x6x2d\Shell\open\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
=============================
OpenWithProgIDs(5)="GIMP2.bmp"
[HKEY_CLASSES_ROOT\GIMP2.bmp]
@="GIMP 2.10.32"
[HKEY_CLASSES_ROOT\GIMP2.bmp\DefaultIcon]
@="C:\Program Files\GIMP 2\bin\gimp-2.10.exe,1"
[HKEY_CLASSES_ROOT\GIMP2.bmp\shell]
[HKEY_CLASSES_ROOT\GIMP2.bmp\shell\open]
[HKEY_CLASSES_ROOT\GIMP2.bmp\shell\open\command]
@=""C:\Program Files\GIMP 2\bin\gimp-2.10.exe" "%1""
=============================
OpenWithProgIDs(6)="LibreOffice.Bmp"
[HKEY_CLASSES_ROOT\LibreOffice.Bmp]
@="Plik Microsoft Windows Bitmap"
"AppUserModelID"="TheDocumentFoundation.LibreOffice.Draw"
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\DefaultIcon]
@="C:\Program Files\LibreOffice\program\soffice.bin,5"
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell]
@="open"
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\new]
@="&Nowy"
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\new\command]
@=""C:\Program Files\LibreOffice\program\sdraw.exe" -n "%1""
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\open]
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\open\command]
@=""C:\Program Files\LibreOffice\program\sdraw.exe" -o "%1""
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\print]
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\print\command]
@=""C:\Program Files\LibreOffice\program\sdraw.exe" -p "%1""
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\printto]
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\printto\command]
@=""C:\Program Files\LibreOffice\program\sdraw.exe" -pt "%2" "%1""
==========================================================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\OpenWithList]
"a"="i_view64.exe"
"b"="ab"
"MRUList"="abc"
"c"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\OpenWithProgids]
"Paint.Picture"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice]
"ProgId"="IrfanView.bmp"
"Hash"="rlFaV9+I9FA="
=============================
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice="IrfanView.bmp"
[HKEY_CLASSES_ROOT\IrfanView.bmp]
@="IrfanView BMP File"
[HKEY_CLASSES_ROOT\IrfanView.bmp\DefaultIcon]
@="C:\Program Files\IrfanView\i_view64.exe,0"
[HKEY_CLASSES_ROOT\IrfanView.bmp\shell]
[HKEY_CLASSES_ROOT\IrfanView.bmp\shell\open]
[HKEY_CLASSES_ROOT\IrfanView.bmp\shell\open\command]
@=""C:\Program Files\IrfanView\i_view64.exe" "%1""
=============================
FileExts\OpenWithList(0)="a"=i_view64.exe
[HKEY_CLASSES_ROOT\Applications\i_view64.exe]
"FriendlyAppName"="IrfanView 64-bit"
[HKEY_CLASSES_ROOT\Applications\i_view64.exe\shell]
[HKEY_CLASSES_ROOT\Applications\i_view64.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\i_view64.exe\shell\open\command]
@=""C:\Program Files\IrfanView\i_view64.exe" "%1""
=============================
FileExts\OpenWithList(1)="b"=ab
not found: [HKEY_CLASSES_ROOT\Applications\ab]
=============================
FileExts\OpenWithList(3)="c"=a
not found: [HKEY_CLASSES_ROOT\Applications\a]
=============================
FileExts\OpenWithProgIDs(0)="Paint.Picture"
[HKEY_CLASSES_ROOT\Paint.Picture]
@="Paintbrush Picture"
"MsixRegistryCompatibility.WrittenBy"="Microsoft.Paint_11.2309.30.0_x64__8wekyb3d8bbwe"
[HKEY_CLASSES_ROOT\Paint.Picture\CLSID]
@="{D3E34B21-9D75-101A-8C3D-00AA001A1652}"
[HKEY_CLASSES_ROOT\Paint.Picture\Insertable]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "New" submenu is different from Explorer's

Post by *ghisler(Author) »

Thanks! It could be due to this line:
[HKEY_CLASSES_ROOT\LibreOffice.Bmp\shell\new\command]
@=""C:\Program Files\LibreOffice\program\sdraw.exe" -o "%1""

What happens when you choose the new bmp menu item? Does it launch LibreOffice Draw?
Author of Total Commander
https://www.ghisler.com
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Re: "New" submenu is different from Explorer's

Post by *kapela86 »

No, it just creates empty file with bmp extension, just like with txt.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: "New" submenu is different from Explorer's

Post by *Horst.Epp »

I have installed LibreOffice,
but this doesn't create any bmp entry under the New context menu.
Nevertheless, I would never use such an entry to create a bmp file (it's a useless format for me).
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Re: "New" submenu is different from Explorer's

Post by *kapela86 »

Yes, it's useless, but I just wanted to report discrepancy between Total commander's and Explorer's "New" submenu.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "New" submenu is different from Explorer's

Post by *ghisler(Author) »

No, it just creates empty file with bmp extension, just like with txt.
OK, I will move this thread to "will not be changed" because it doesn't really do any harm (but not any good either).

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Re: "New" submenu is different from Explorer's

Post by *kapela86 »

But the bigger issue remains, that it doesn't display new "txt" file

Code: Select all

[HKEY_CLASSES_ROOT\.txt]
@="txtfile"
"Content Type"="text/plain"
"PerceivedType"="text"
[HKEY_CLASSES_ROOT\.txt\OpenWithProgids]
"AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw"=hex(0):
"soffice.StarCalcDocument.6"=" "
"soffice.StarWriterDocument.6"=" "
"VSCode.txt"=""
[HKEY_CLASSES_ROOT\.txt\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
=============================
not found: [HKEY_CLASSES_ROOT\txtfile]
=============================
OpenWithProgIDs(0)="AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw]
"FriendlyTypeName"="@{Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.WindowsNotepad/Resources/FileTypeDisplayName_Txtfile}"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Application]
"ApplicationName"="@{Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.WindowsNotepad/Resources/AppDisplayName_Notepad}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.WindowsNotepad/Files/Assets/NotepadAppList.png}"
"ApplicationDescription"="ms-resource:Resources/AppDescription_Notepad"
"AppUserModelID"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\DefaultIcon]
@="@{Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.WindowsNotepad/Files/Assets/txtfile.png}"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell]
@="open"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\Edit]
"AppUserModelID"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="Notepad\Notepad.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\Edit\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe" %1"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\open]
"AppUserModelID"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="Notepad\Notepad.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\open\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe""
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\Print]
"AppUserModelID"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="Notepad\Notepad.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\Print\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe" /p %1"
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\PrintTo]
"AppUserModelID"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="Notepad\Notepad.exe"
"DesktopAppXActivateOptions"=dword:00000020
[HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\Shell\PrintTo\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@=""C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2309.28.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe" /pt "%1" "%2" "%3" "%4""
=============================
OpenWithProgIDs(1)="soffice.StarCalcDocument.6"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6]
@="Arkusz kalkulacyjny OpenOffice.org 1.1"
"AppUserModelID"="TheDocumentFoundation.LibreOffice.Calc"
"FriendlyTypeName"="Arkusz kalkulacyjny OpenOffice.org 1.1"
"FullDetails"="prop:System.PropGroup.Description;System.Title;System.Author;System.Subject;System.Keywords;System.Comment;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemType;System.ItemFolderPathDisplay;System.Size;System.DateCreated;System.DateModified;System.FileAttributes;System.ComputerName"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\CLSID]
@="{7B342DC4-139A-4a46-8A93-DB0827CCEE9C}"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\DefaultIcon]
@="C:\Program Files\LibreOffice\program\soffice.bin,3"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\Insertable]
@=""
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing\server]
@="C:\Program Files\LibreOffice\program\soffice.exe"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing\verb]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing\verb\-1]
@="&Show"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing\verb\-2]
@="&Open"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\protocol\StdFileEditing\verb\0]
@="&Edit"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell]
@="open"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\new]
@="&Nowy"
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\new\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -n "%1""
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\open]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\open\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -o "%1""
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\print]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\print\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -p "%1""
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\printto]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shell\printto\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -pt "%2" "%1""
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shellex]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\soffice.StarCalcDocument.6\shellex\PropertySheetHandlers\MyPropSheet1]
@="{63542C48-9552-494A-84F7-73AA6A7C99C1}"
=============================
OpenWithProgIDs(2)="soffice.StarWriterDocument.6"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6]
@="Dokument tekstowy OpenOffice.org 1.1"
"AppUserModelID"="TheDocumentFoundation.LibreOffice.Writer"
"FriendlyTypeName"="Dokument tekstowy OpenOffice.org 1.1"
"FullDetails"="prop:System.PropGroup.Description;System.Title;System.Author;System.Subject;System.Keywords;System.Comment;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemType;System.ItemFolderPathDisplay;System.Size;System.DateCreated;System.DateModified;System.FileAttributes;System.ComputerName"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\CLSID]
@="{30A2652A-DDF7-45e7-ACA6-3EAB26FC8A4E}"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\DefaultIcon]
@="C:\Program Files\LibreOffice\program\soffice.bin,1"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\Insertable]
@=""
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing\server]
@="C:\Program Files\LibreOffice\program\soffice.exe"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing\verb]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing\verb\-1]
@="&Show"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing\verb\-2]
@="&Open"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\protocol\StdFileEditing\verb\0]
@="&Edit"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell]
@="open"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\new]
@="&Nowy"
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\new\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -n "%1""
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\open]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\open\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -o "%1""
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\print]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\print\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -p "%1""
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\printto]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shell\printto\command]
@=""C:\Program Files\LibreOffice\program\soffice.exe" -pt "%2" "%1""
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shellex]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\soffice.StarWriterDocument.6\shellex\PropertySheetHandlers\MyPropSheet1]
@="{63542C48-9552-494A-84F7-73AA6A7C99C1}"
=============================
OpenWithProgIDs(3)="VSCode.txt"
[HKEY_CLASSES_ROOT\VSCode.txt]
@="Text Source File"
"AppUserModelID"="Microsoft.VisualStudioCode"
[HKEY_CLASSES_ROOT\VSCode.txt\DefaultIcon]
@="C:\Users\piotr.kapelanski\AppData\Local\Programs\Microsoft VS Code\resources\app\resources\win32\default.ico"
[HKEY_CLASSES_ROOT\VSCode.txt\shell]
[HKEY_CLASSES_ROOT\VSCode.txt\shell\open]
"Icon"=""C:\Users\piotr.kapelanski\AppData\Local\Programs\Microsoft VS Code\Code.exe""
[HKEY_CLASSES_ROOT\VSCode.txt\shell\open\command]
@=""C:\Users\piotr.kapelanski\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%1""
==========================================================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithList]
"a"="Notepad3.exe"
"b"="Notepad.exe"
"c"="cab"
"MRUList"="edabc"
"d"="Notepad2.exe"
"e"="Microsoft.WindowsNotepad_8wekyb3d8bbwe!App"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithProgids]
"txtfile"=hex(0):
"txtfilelegacy"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice]
"ProgId"="txtfile"
"Hash"="znzwf5gkPQo="
=============================
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice="txtfile"
=============================
FileExts\OpenWithList(0)="a"=Notepad3.exe
not found: [HKEY_CLASSES_ROOT\Applications\Notepad3.exe]
=============================
FileExts\OpenWithList(1)="b"=Notepad.exe
[HKEY_CLASSES_ROOT\Applications\Notepad.exe]
"NoOpenWith"=""
[HKEY_CLASSES_ROOT\Applications\Notepad.exe\shell]
[HKEY_CLASSES_ROOT\Applications\Notepad.exe\shell\edit]
[HKEY_CLASSES_ROOT\Applications\Notepad.exe\shell\edit\command]
@="%SystemRoot%\system32\NOTEPAD.EXE %1"
[HKEY_CLASSES_ROOT\Applications\Notepad.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\Notepad.exe\shell\open\command]
@="%SystemRoot%\system32\NOTEPAD.EXE %1"
=============================
FileExts\OpenWithList(2)="c"=cab
not found: [HKEY_CLASSES_ROOT\Applications\cab]
=============================
FileExts\OpenWithList(4)="d"=Notepad2.exe
not found: [HKEY_CLASSES_ROOT\Applications\Notepad2.exe]
=============================
FileExts\OpenWithList(5)="e"=Microsoft.WindowsNotepad_8wekyb3d8bbwe!App
not found: [HKEY_CLASSES_ROOT\Applications\Microsoft.WindowsNotepad_8wekyb3d8bbwe!App]
=============================
FileExts\OpenWithProgIDs(0)="txtfile"
not found: [HKEY_CLASSES_ROOT\txtfile]
=============================
FileExts\OpenWithProgIDs(1)="txtfilelegacy"
[HKEY_CLASSES_ROOT\txtfilelegacy]
[HKEY_CLASSES_ROOT\txtfilelegacy\shell]
[HKEY_CLASSES_ROOT\txtfilelegacy\shell\printto]
"NeverDefault"=""
[HKEY_CLASSES_ROOT\txtfilelegacy\shell\printto\command]
@="%SystemRoot%\system32\notepad.exe /pt "%1" "%2" "%3" "%4""
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: "New" submenu is different from Explorer's

Post by *Stefan2 »

kapela86 wrote: 2023-11-21, 22:32 UTC But the bigger issue remains, that it doesn't display new "txt" file
If your context menu doesn't work for you:
> do you know "Shift+F4" ?




User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "New" submenu is different from Explorer's

Post by *ghisler(Author) »

Looks like your registry settings are double broken - not only is the ShellNew entry missing (which is Microsoft's fault), but the default value of the .txt key is invalid too:
[HKEY_CLASSES_ROOT\.txt]
@="txtfile"
not found: [HKEY_CLASSES_ROOT\txtfile]
On my Windows 11 system it is set to txtfilelegacy.
Author of Total Commander
https://www.ghisler.com
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Re: "New" submenu is different from Explorer's

Post by *kapela86 »

That Shift+F4 trick is just what I need 🙂

Regarding "txtfile", my system was fresh install of Win 10, can't remember which version, but updated regularly to feature updates. Then with Win10 22H2 I upgraded to Win11 22H2, and now to 23H2. I have notepad++ installed, maybe it changed something. I changed txtfile to txtfilelegacy and now TC shows txt extension in "New" submenu.
So looks like it was an issue on in my system and it's now fixed.
Thank you! 🙂
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "New" submenu is different from Explorer's

Post by *ghisler(Author) »

That could indeed be the reason - the old name in the registry was "txtfile" before Microsoft changed it to "txtfilelegacy" in Windows 10. Maybe Notepad++ changed it back to "txtfile" but didn't add the txtfile key under HKEY_CLASSES_ROOT.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: "New" submenu is different from Explorer's

Post by *white »

ghisler(Author) wrote: 2023-11-22, 10:06 UTC
[HKEY_CLASSES_ROOT\.txt]
@="txtfile"
not found: [HKEY_CLASSES_ROOT\txtfile]
On my Windows 11 system it is set to txtfilelegacy.
I think it is like this: When the Windows Store Notepad app is installed, the txtfile file type is renamed to txtfilelegacy. On my Windows 11 system it's also called txtfilelegacy, but when I open Windows Sandbox, where the Windows Store Notepad app is not installed, it is still called txtfile.
(Edit: I installed the Windows Store Notepad app in Windows Sandbox and the file type remained txtfile.)
ghisler(Author) wrote: 2023-11-23, 09:32 UTC That could indeed be the reason - the old name in the registry was "txtfile" before Microsoft changed it to "txtfilelegacy" in Windows 10. Maybe Notepad++ changed it back to "txtfile" but didn't add the txtfile key under HKEY_CLASSES_ROOT.
If I use Notepad++ to set the association for .txt to Notepad++, the file type Notepad++_file is used. If I remove the association using Notepad++, then indeed .txt is associated with the non existing file type txtfile. I think you could call that a bug in Notepad++, it should have changed the association to txtfilelegacy.
Post Reply