Notepad++ 7.5.9 x32 file association on Win8.1x64 broken
This .reg file has worked to open files with notepad++ for many years.
It does NOT work with build 7.5.9 x32 when run on Win8.1x64.
Build 7.5.9 breaks the passed file path into multiple items.
Why is this and how to fix it?
Windows Registry Editor Version 5.00
@=“Edit with &Notepad++”
@=“C:\Portable\- Linked\Notepad++\Notepad++.exe %L”
Probably one of this changes:
@FredThompsonII I think Win10x64 has the same issue.
Try changing the line
@="C:\Portable\- Linked\Notepad++\Notepad++.exe %L"
@="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%L\""
Of course I meant:
@="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%1\""
%Lis not a valid place holder.
Actually, for registry associations,
%Lis a valid placeholder. It means the long file name. This SO answer lists it, and some of the others. (At one time, in eons past, there is some evidence that MS documented some of those… but most of the links have disappeared over time.)
I just verified it worked by createing a new command for some file type with a command of
cmd.exe /K echo "%L"… this correctly opened the cmd window and printed the long file name.
%Lis a valid placeholder
Wow, I’ve never heard this! Thank you for this hint!