Hello,
Removing the alias as explained works, but not completely.
It perfectly works when running C:\windows\notepad.exe directly, or when typing "notepad" in the run dialog (Win+R). Thank you very much for that.
However, when double-clicking a .txt file, it still opens the UWP notepad.
Trying to re-associate .txt files with notepad.exe by the standard way keep re-associating .txt files with UWP notepad, no matter how you proceed.
- Open context menu of any .txt file
- Chose "Open with..."
- Click on "Browse on my PC"
- Explicitly enter "C:\windows\notepad.exe" in the open dialog
- Click "Always"
So the workaround to really open .txt files in the classic notepad by double-clicking on them as it has always been working for ages, is as follows.
Create a new file C:\windows\classic-notepad.bat with the following contents:
@echo off
start C:\windows\notepad.exe %*
Then, make the re-association by entering "C:\windows\classic-notepad.bat" instead of "C:\windows\notepad.exe" at step 4.
Hurra, now it works! You can double-click on .txt files and they open in old classic notepad.
That's just a shame that Microsoft replaced our old good legendary notepad with a maybe slightly more beautiful, but a lot more buggy and slower one, without giving a choice.
Note that, uninstalling system notepad as said by other posts in this thread completely delete C:\windows\notepad.exe, and so it isn't a solution, unless you want to systematically use notepad++ or another text editor, other editors which don't always work very well with screen readers, or at least not as well as our good old notepad.
Just in case, before finding the solution, I also tried to copy C:\windows\notepad.exe from an older PC running an up to date version of windows 10. It was totally impossible to run it under windows 11, the window don't appear at all! Even if you rename it notepad2.exe, wherever you try, even if you try with command-line, even by specifying a file to open which does or doesn't exists, nothing!
Thank you for reading. With the hope that this definitely solves the problem for you, too.