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.
    • FredThompsonIIF
      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 JodoinJ 1 Reply Last reply Reply Quote 0
      • chcgC
        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 JodoinJ
          Jeffrey Jodoin @FredThompsonII
          last edited by

          @FredThompsonII I think Win10x64 has the same issue.

          1 Reply Last reply Reply Quote 0
          • dinkumoilD
            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
            • dinkumoilD
              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
              • PeterJonesP
                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
                • dinkumoilD
                  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
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors