Windows 10 associate to .txt
Notepad++ 7.5.8, 7.5.7 maybe and lower versions can’t associate notepad++ to .txt
Same problem on Notepad++ 7.5.9. And it’s not just .txt files, it can’t be made the default application for ANY file types.
Hmmmm, I just tried completely uninstalling Notepad++ and deleting the “C:\Program Files\Notepad++” directory and restarting, then installing v7.5.0, but still have the same problem. Maybe the issue isn’t with the newer version of Notepad++, but with Windows 10 itself? I’m using Windows 10 version 1803 (OS Build 17134.345). I’m able to set VS Code as the default app though, so I’m really not certain where the problem lies here.
I know this side steps the actual issue, but there’s a new feature in 7.5.9 where you can use NPP as a replacement for windows notepad. This method is far easier than having to copy a launcher into 3 different windows directories and fighting the Windows File Protection. So far I haven’t had any issues with it.
Try this from an elevated command prompt (adjust as needed to the correct path):
ftype txtfile=“C:\Program Files (x86)\Notepad++\notepad++.exe” “%1”
You’re not the first to have the problem. If you searched these forums for "associate", you would have seen previous discussions.
Based on that previous history, I am going to bet that you are using 64bit, not 32bit. There seems to be something with the 64bit install that doesn’t associate properly.
This seems to be related to several long-time open issues in the development repo,
@Tina-Biceno Thanks - it works :)
Maybe the issue isn’t with the newer version of Notepad++, but with Windows 10 itself? I’m using Windows 10 version 1803 (OS Build 17134.345).
I think, you are right. Even, I am not able to set (not only npp, but other apps too e.g. default notepad, worpad, vlc player etc.). I am using Windows 10 version 1803 (OS Build 17134.376).
I am going to bet that you are using 64bit, not 32bit.
I am checking with 32 bit version too. Same issue. However there is small glitch when shifting from 32bit to 64bit which requires a fix (updating registry from “C:\Program Files (x86)\Notepad++\notepad++.exe” to “C:\Program Files\Notepad++\notepad++.exe”.
Your are using Windows 10 1803? There seems to be a bug introduced with the 2018-10 Windows updates, see here.