26
11
Disclaimer: I know how to set default apps and file extensions, I have done it many times previously.
I have just installed Windows 10 Home on a new machine. I'm trying to associate my web development files with Netbeans specifically, but that may be irrelevant.
1. File extensions not available
Firstly, lots of common file extensions I use are not present in the file extensions list - e.g. .php
extension. I don't know if that is normally available in the Windows list. I certainly didn't have to manually add the .php
extension on my previous computer with the same OS.
I solved this by adding the file extension manually. As I say, I have never had to do that before.
2. "Open With" doesn't save my choice of app
If I right-click on a file and "Open with" and enable "Always use this app to open files" it will open the file in the program I select, but the file icon in Explorer will not change, and it will not set it as the default program.
I still have to select "Open with" every time I open a file with that extension.
3. I cannot choose defaults by app
Settings > Default apps > Set defaults by app
My program (Netbeans) is not in the list of available apps.
4. I cannot choose defaults by file type
Settings > Default apps > Choose default applications by file type
If I select a file extension and "[+] Choose a default", when I select an app it will hang for a second as if it's working, then nothing happens. The default will not be set, and the "[+] Choose a default" button is still there.
Note: This does work for any file type with a default app already set.
Other Info
- I can change the extension for common files such as PNG, TXT.
- I cannot change extensions for files such as HTML, CSS, JS, PHP, SQL.
Based on your symptoms, there is some bug in your OS install and you should proceed to try to repair that. One other method to try though would be to modify your registry.https://superuser.com/questions/266268/where-in-the-registry-does-windows-store-with-which-program-to-open-certain-fil
– music2myear – 2018-10-12T18:02:01.320@music2myear I just did a "Start Fresh" reinstall of Windows 10 and I still have this problem after installing Netbeans. I cannot set default programs for CSS, JS, PHP, etc. – BadHorsie – 2018-10-22T23:39:55.933
What about for TXT or .HTML or other files? – music2myear – 2018-10-22T23:47:09.190
@music2myear TXT yes, HTML no. I also checked my registry and it's fine. – BadHorsie – 2018-10-23T09:43:04.630
i'd recommend doing sfc /scannow from an admin CMD prompt. Something funky going on there if you aren't able to set defaults. – Stese – 2018-10-23T09:50:23.273
Also, I've seen Malware that deliberately messes with extensions to hamper with it's removal. I'd do a full AV and malware scans – Stese – 2018-10-23T09:51:34.587
@Stese This is a newly built PC, with Win 10 installed from fresh. – BadHorsie – 2018-10-23T11:57:01.670
1
Possible duplicate of Changing default Windows 10 file type association by standard dialog
– Run5k – 2018-11-14T13:35:36.147https://support.microsoft.com/en-us/help/4462919/windows-10-update-kb4462919 microsoft broke it. – Mujnoi Gyula Tamas – 2018-11-24T08:57:24.217
Possible duplicate of SSMS wont give up file associations
– Ramhound – 2018-11-24T14:29:25.547