Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    file associatio notepad++ 7.5.9
    5
    7
    2007
    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.
    • FredThompsonII
      FredThompsonII last edited by

      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”

      Jeffrey Jodoin 1 Reply Last reply Reply Quote 0
      • chcg
        chcg last edited by

        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
        • Jeffrey Jodoin
          Jeffrey Jodoin @FredThompsonII last edited by

          @FredThompsonII I think Win10x64 has the same issue.

          1 Reply Last reply Reply Quote 0
          • dinkumoil
            dinkumoil last edited by dinkumoil

            @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
            • dinkumoil
              dinkumoil last edited by

              @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
              • PeterJones
                PeterJones last edited by

                @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
                • dinkumoil
                  dinkumoil last edited by

                  @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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors