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
[HKEY_CLASSES_ROOT*\shell\Notepad++]
@=“Edit with &Notepad++”
“Icon”=“C:\Portable\- Linked\Notepad++\notepad++.exe,0”[HKEY_CLASSES_ROOT*\shell\Notepad++\Command]
@=“C:\Portable\- Linked\Notepad++\Notepad++.exe %L” -
Probably one of this changes:
https://github.com/notepad-plus-plus/notepad-plus-plus/commit/74d39b1cec6dd0995ce41f3d860539f24cb34a9e
https://github.com/notepad-plus-plus/notepad-plus-plus/commit/f0821d983593a0d3e1afcf5f61b1937c4f16be50
https://github.com/notepad-plus-plus/notepad-plus-plus/commit/0db302953bb5a5ba3e06591fb721c8474ba9171e -
@FredThompsonII I think Win10x64 has the same issue.
-
Try changing the line
@="C:\Portable\- Linked\Notepad++\Notepad++.exe %L"
to
@="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%L\""
-
Of course I meant:
@="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%1\""
%L
is not a valid place holder. -
Actually, for registry associations,
%L
is 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. -