• Login
Community
  • Login

Notepad++ 7.5.9 x32 file association on Win8.1x64 broken

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
file associationotepad++ 7.5.9
7 Posts 5 Posters 2.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    FredThompsonII
    last edited by Oct 25, 2018, 7:39 PM

    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”

    J 1 Reply Last reply Oct 26, 2018, 2:02 PM Reply Quote 0
    • C
      chcg
      last edited by Oct 25, 2018, 8:03 PM

      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

      1 Reply Last reply Reply Quote 0
      • J
        Jeffrey Jodoin @FredThompsonII
        last edited by Oct 26, 2018, 2:02 PM

        @FredThompsonII I think Win10x64 has the same issue.

        1 Reply Last reply Reply Quote 0
        • D
          dinkumoil
          last edited by dinkumoil Oct 26, 2018, 6:44 PM Oct 26, 2018, 6:42 PM

          @FredThompsonII

          Try changing the line

          @="C:\Portable\- Linked\Notepad++\Notepad++.exe %L"
          

          to

          @="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%L\""
          
          1 Reply Last reply Reply Quote 2
          • D
            dinkumoil
            last edited by Oct 27, 2018, 4:26 PM

            @FredThompsonII

            Of course I meant:

            @="\"C:\\Portable\\- Linked\\Notepad++\\Notepad++.exe\" \"%1\""
            

            %L is not a valid place holder.

            1 Reply Last reply Reply Quote 0
            • P
              PeterJones
              last edited by Oct 27, 2018, 10:47 PM

              @dinkumoil ,

              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.

              1 Reply Last reply Reply Quote 2
              • D
                dinkumoil
                last edited by Oct 28, 2018, 2:26 AM

                @PeterJones said:

                %L is a valid placeholder

                Wow, I’ve never heard this! Thank you for this hint!

                1 Reply Last reply Reply Quote 1
                3 out of 7
                • First post
                  3/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors