• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 4 Posters 1.5k 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.
  • J
    Jim Vence
    last edited by Feb 16, 2023, 7:12 PM

    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

    A P 2 Replies Last reply Feb 16, 2023, 7:18 PM Reply Quote 0
    • A
      Alan Kilborn @Jim Vence
      last edited by Feb 16, 2023, 7:18 PM

      @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.

      J 1 Reply Last reply Feb 16, 2023, 8:33 PM Reply Quote 0
      • P
        PeterJones @Jim Vence
        last edited by Feb 16, 2023, 7:30 PM

        @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.

        J 1 Reply Last reply Feb 16, 2023, 8:38 PM Reply Quote 1
        • J
          Jim Vence @Alan Kilborn
          last edited by Feb 16, 2023, 8:33 PM

          @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.

          M 1 Reply Last reply Feb 16, 2023, 8:36 PM Reply Quote 0
          • M
            Michael Vincent @Jim Vence
            last edited by Feb 16, 2023, 8:36 PM

            @Jim-Vence

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

            Cheers.

            J 1 Reply Last reply Feb 16, 2023, 9:27 PM Reply Quote 1
            • J
              Jim Vence @PeterJones
              last edited by Feb 16, 2023, 8:38 PM

              @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?

              A P 2 Replies Last reply Feb 16, 2023, 8:41 PM Reply Quote 0
              • A
                Alan Kilborn @Jim Vence
                last edited by Feb 16, 2023, 8:41 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • P
                  PeterJones @Jim Vence
                  last edited by PeterJones Feb 16, 2023, 9:07 PM Feb 16, 2023, 9:07 PM

                  @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++.

                  J 1 Reply Last reply Feb 16, 2023, 9:24 PM Reply Quote 0
                  • J
                    Jim Vence @PeterJones
                    last edited by Feb 16, 2023, 9:24 PM

                    @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
                    • J
                      Jim Vence @Michael Vincent
                      last edited by Feb 16, 2023, 9:27 PM

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

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