Community
    • Login

    NP++ and Windows Registry (Fix for FilePath Filename with blank space)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    10 Posts 4 Posters 1.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.
    • Jim VenceJ
      Jim Vence
      last edited by

      Hello, I am having related problems due to the issue with using NP++ on Windows 10, where launching from PowerShell command prompt with a filepath (with double quotes) results in NP++ interpreting the filename as multiple names separated by a space. I am running the current version 8.4.9, but this seems like a known issue.

      This can be fixed, as I understand, by editing the Windows Registry, and adding double quotes around the “%” which should currently look like this:
      C:\Program Files\Notepad++\Notepad++.exe" %1

      I can’t find “notepad++” in my windows registry. I’ve included a screen shot of the only result on a search for “notepad++”, which is “ANotepad++64”.

      Any guidance with Windows Registry as far finding the NP++ configuration?

      Thank you.

      2023-02-16_12-56-27.jpg

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Jim Vence
        last edited by

        @Jim-Vence said in NP++ and Windows Registry (Fix for FilePath Filename with blank space):

        where launching from PowerShell command prompt with a filepath (with double quotes) results in NP++ interpreting the filename as multiple names separated by a space

        I cannot reproduce this with Notepad++ 8.4.9.
        This shouldn’t have anything to do with any registry entries.
        You provided other detail, but how about some detail on where you’re having the problem: Show the powershell command line you’re trying.

        Jim VenceJ 1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Jim Vence
          last edited by

          @Jim-Vence ,

          Further to what @Alan-Kilborn said, the ANotepad++64 is where the 64-bit Notepad++ registers its NppShell_06.dll Shell Extension. And if you go to the key {B298D29A-A6ED-11DE-BA8C-A68E55D89593}, it will show you where it’s finding that DLL and the associated EXE.

          Notepad++ v8.4.9 has a known issue with accidentally splitting filenames on spaces in certain conditions (like the “notepad replacement mode” – but it wouldn’t surprise me if that also affected other outlier situations); there will be a fix in the next release – so hopefully that will fix your problem as well.

          Jim VenceJ 1 Reply Last reply Reply Quote 1
          • Jim VenceJ
            Jim Vence @Alan Kilborn
            last edited by

            @Alan-Kilborn Here’s the command:

            start notepad++ “C:\Users\jimve\OneDrive\Web\Client\Baking By Addie\ToDo.txt”

            Notepad dialog boxes ask if I intend to create several new files, when I want to edit an existing file:
            C:\Users\jimve\OneDrive\Web\Client\Baking doesn’t exist…do you want to create it?

            and “By” and “Addie\ToDo.txt” – same dialog questions.

            Michael VincentM 1 Reply Last reply Reply Quote 0
            • Michael VincentM
              Michael Vincent @Jim Vence
              last edited by

              @Jim-Vence

              Don’t use start, just make sure Notepad++ is in the PATH.

              Cheers.

              Jim VenceJ 1 Reply Last reply Reply Quote 1
              • Jim VenceJ
                Jim Vence @PeterJones
                last edited by

                @PeterJones Thanks for the info links. Not necessarily a registry issue, perhaps.

                The links took me to a downloadable exe at:

                https://ci.appveyor.com/project/donho/notepad-plus-plus/builds/46115511/job/7l45vre1j70svrii/artifacts

                I’m new to this forum and have never had to troubleshoot anything with NP++, so I’m not familiar with AppVeyor. Is this a reputable cyber-safe executable version fork to try out?

                Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
                • Alan KilbornA
                  Alan Kilborn @Jim Vence
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • PeterJonesP
                    PeterJones @Jim Vence
                    last edited by PeterJones

                    @Jim-Vence,

                    I’m new to this forum and have never had to troubleshoot anything with NP++, so I’m not familiar with AppVeyor. Is this a reputable cyber-safe executable version fork to try out?

                    AppVeyor is the CI server which automatically builds commits and tests them on a windows virtual machine, as set up by the developer to make sure all commits build correctly. There’s even a section in the developer’s “Testing” FAQ which explains how to grab the binary from AppVeyor based on a Pull Request: it is an intentionally-sanctioned path for trying out pre-release builds of Notepad++.

                    Jim VenceJ 1 Reply Last reply Reply Quote 0
                    • Jim VenceJ
                      Jim Vence @PeterJones
                      last edited by

                      @PeterJones Good to know for future reference. Following reply from Michael V. the direct call (removing start), by adding the NP folder to my search path seems to have worked.

                      FYI Just part of a simple “edit” script which finds every file by that name within my folder and subfolders.

                      1 Reply Last reply Reply Quote 1
                      • Jim VenceJ
                        Jim Vence @Michael Vincent
                        last edited by

                        @Michael-Vincent That worked for me. Thank you!

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