FYI...

In Windows 11, text file association no longer works at commandline or registry. Have to associate by right click on the text file and "Open With".

This will no longer work.

https://techexpert.tips/windows/wind...n-command-line

ftype txtfile="C:\Program Files (x86)\NotePadReplacement\notepad++.exe" "%1"