Fix Cannot associate File Type with a Program in Windows
Here's how to Fix Cannot associate File Type with a Program in Windows.
If you're unable to associate a file type with a program in Windows, try some other solutions listed below:
1. Use the Default Programs tool:
Press the Windows key + R to open the Run dialog box.
Type "control" and press Enter to open the Control Panel.
In the Control Panel, click on "Programs" and then click on "Default Programs."
Click on "Associate a file type or protocol with a program."
Select the file type you want to associate with a program and click "Change program."
Choose the program you want to use for that file type and click "OK."
2. Use the Open With option:
Right-click on the file you want to associate with a program.
Click on "Open With" and then click on "Choose another app."
Select the program you want to use for that file type and make sure the box next to "Always use this app to open .[file extension] files" is checked.
3. Use the Registry Editor:
Press the Windows key + R to open the Run dialog box.
Type "regedit" and press Enter to open the Registry Editor.
Navigate to the following key: HKEY_CLASSES_ROOT.file extension
Make sure that the "(Default)" value is set to the file type you want to associate with a program.
Navigate to the following key: HKEY_CLASSES_ROOT\file type\shell\open\command
Make sure that the "(Default)" value is set to the path of the program you want to use for that file type.
4. Check if the file type is blocked by Group Policy:
Press the Windows key + R to open the Run dialog box.
Type "gpedit.msc" and press Enter to open the Local Group Policy Editor.
Navigate to "User Configuration" - "Administrative Templates" - "Windows Components" - "File Explorer."
Look for a setting called "Do not allow file associations to be set for all users" and make sure it is set to "Not Configured" or "Disabled."
If none of these solutions work, you can also try resetting the file associations back to their default settings by using the "Reset to Default" button in the Default Programs tool or by using a third-party tool like FileTypesMan.