Does Windows 11 allow file associations for extensions that are more than 4 characters long?


comvox

New member
Local time
6:56 PM
Posts
2
OS
Windows 11 Home
Does Windows 11 allow file associations for extensions that are more than 4 characters long? When I follow the direct procedure to add file associations for extensions, I can do it for an extension that is four characters long, but not for an extension with more than four characters.
 

My Computer My Computer

At a glance

Windows 11 Home11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GH...16.0 GB (15.6 GB usable)
OS
Windows 11 Home
Computer type
Laptop
Manufacturer/Model
Lenovo IdeaPad Flex 5 15IILO5
CPU
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz 2.80 G
Memory
16.0 GB (15.6 GB usable)
Screen Resolution
1920 x 1080
Hard Drives
A 1 TB SSD
@comvox

I haven't tried directly adding file associations to my apps in Windows 11 Pro, but I do know that Windows is recognizing the .mrimg and .mrbak extensions as related to Macrium Reflect, which is my primary disk imaging application, so it must be possible. I also see other extensions of more than four characters in my file associations.

Perhaps others more knowledgeable than me will contribute to this topic.

Have a great day.

Regards,
Phil

PS: Welcome to ElevenForum.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro Version 25H2 (Build 26200.9168)Intel i7-9700K 4700 MHz32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666...NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    OS
    Windows 11 Pro Version 25H2 (Build 26200.9168)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    Western Digital Black 4TB
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • At a glance

    Windows 11 Pro Version 25H2 (Build 26200.9168)i7-9750H 4.5 GHz16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHzNVIDIA GeForce 1650 4 GB GDDR5
    Operating System
    Windows 11 Pro Version 25H2 (Build 26200.9168)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Keyboard
    Laptop
    Mouse
    Logitech M510
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.35.0
I have some Themepacks on my drive that appear to have longer extensions.

1698865776604.png
I created a junk file in Notepad and gave it the same extension, it was saved.
 

My Computers My Computers

  • At a glance

    Win11 Pro RTM Version 24H2 Build 26100.4202Intel Core i5 11th Gen. 2.40GHz12GB
    OS
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • At a glance

    Win11 Pro RTM Version 24H2 Build 26100.4202Intel Core i5 10th Gen. 2.90GHz16GBOnboard, no VGA, using a DisplayPort-to-VGA a...
    Operating System
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Run "assoc" from the CMD shell, you'll see many file extensions longer than 3 characters.

There's a separate problem with creating your own extensions, because Windows protects file type associations from tampering with a security hash. Use SetUserFTA to get around it.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Windows 2000 has a 254 character limit.
Windows XP has a 255 character limit.
Windows Vista and Windows 7/8/10/11 has a 260 character limit.

file path, name, and extension combined do not exceed the operating system's maximum file name character limit
 

My Computer My Computer

At a glance

WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD...Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4....64GB using 2x32GB CL16 Mushkin redLine modulesIntel UHD 630 & NVIDIA GeForce GTX 1050 Ti wi...
OS
WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD Unix
Computer type
Laptop
Manufacturer/Model
Dell XPS 15 9570
CPU
Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4.1Ghz
Motherboard
Dell XPS 15 9570
Memory
64GB using 2x32GB CL16 Mushkin redLine modules
Graphics Card(s)
Intel UHD 630 & NVIDIA GeForce GTX 1050 Ti with 4GB DDR5
Sound Card
Realtek ALC3266-CG
Monitor(s) Displays
15.6" 4K Touch UltraHD 3840x2160 made by Sharp
Screen Resolution
3840x2160 4K UltraHD
Hard Drives
Samsung MZ-V9P4T0B/AM 990 PRO 4TB PCIe®4.0 NVMe™ M.2 SSD was Toshiba KXG60ZNV1T02 NVMe 1TB SSD
PSU
Dell XPS 15 9570
Case
Dell XPS 15 9570
Cooling
Stock
Keyboard
Stock
Mouse
SwitftPoint ProPoint
Internet Speed
Comcast/XFinity 1.44Gbps/42.5Mbps
Browser
Microsoft EDGE (Chromium based) & Google Chrome
Antivirus
Windows Defender that came with Windows
Thank you to everyone who replied. I appreciate it, and I'm sorry that It turns out that I was mistaken about what was the problem. What turns out to be the case, is that the problem was with one particular file association. I can now can get Windows 11 to do file associations for extensions of any number of characters, and have even learned several other ways to set them. But they all don't work on one particular file extension, .menufile. For example, if I use apps > Default Apps, then where a box should allow me to enter an application to run this file type, the box is grayed out. If I go in a file manager to, say, Books.menufile, and right click, and use "Open with", it only allows me the "use this time", not the "use always" option. If I right click and go to file properties, where there should be a "Change" option, it doesn't exist. I was wrong that this was because the file extension was more than four characters, but there's still a problem.

This is a file association which worked in Windows 10 and stopped working when I upgraded to Windows 11. As far as I can tell, every other file association went over unchanged. It is a file association of the ".menufile" extension to an application, a nice little file/application launcher which I named Onward.exe, which I created using Autohotkey. I presume this must have something to do with it. Or so it would seem except that another file association (with a seven letter extension) to Onward.exe was carried over without problem. (I have done a lot of checking since the problem with "menufile" arose and have learned a number of things. Thanks again to those who replied to me.)

I have made a file association to ".menu" which works, and then I made a change to the Onward program so it would process such files as if they had the ".menufile" extension. I still would prefer to make a file association to ".menufile" if it were possible.
 

My Computer My Computer

At a glance

Windows 11 Home11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GH...16.0 GB (15.6 GB usable)
OS
Windows 11 Home
Computer type
Laptop
Manufacturer/Model
Lenovo IdeaPad Flex 5 15IILO5
CPU
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz 2.80 G
Memory
16.0 GB (15.6 GB usable)
Screen Resolution
1920 x 1080
Hard Drives
A 1 TB SSD
Or so it would seem except that another file association (with a seven letter extension) to Onward.exe was carried over without problem.
Could it simply be that Windows is protecting/restricting/rejecting use of the file part of the extension?
 

My Computers My Computers

  • At a glance

    Win11 Pro RTM Version 24H2 Build 26100.4202Intel Core i5 11th Gen. 2.40GHz12GB
    OS
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • At a glance

    Win11 Pro RTM Version 24H2 Build 26100.4202Intel Core i5 10th Gen. 2.90GHz16GBOnboard, no VGA, using a DisplayPort-to-VGA a...
    Operating System
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
You're allowed to have multiple file extensions pointing to the same file type.

From CMD, run "assoc | findstr menu". Look for the current .menu entry.
Add a new extension using the same arguments on the right side.

assoc .menufile=[argument]
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

Latest Support Threads

Back
Top Bottom