• Login
Community
  • Login

Add Notepad++ to "How do I open this file?" dialog please...

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 520 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.
  • S
    Scott Sanders
    last edited by May 20, 2020, 2:03 AM

    I often want to use Notepad++ to open files with new, random extensions that I know are really text files. Unfortunately Notepad++ doesn’t come up by default in the Windows “How do I open this file? dialog”.

    I have fixed this on my PC by adding the registry info with the following command:

    reg add HKCR\Applications\Notepad++\shell\open\command /ve /t REG_MULTI_SZ /f /d "\"^%ProgramFiles^%\Notepad++\notepad++.exe\" \"%1\""
    

    Can you please consider adding this to the default installer? Seems like a useful add for anyone…

    1 Reply Last reply Reply Quote 0
    • G
      gerdb42
      last edited by May 20, 2020, 5:50 AM

      So what is wrong with the “Open in Notepad++” Context Menu Extension?

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones
        last edited by May 20, 2020, 1:10 PM

        @Scott-Sanders,

        Because you showed %ProgramFiles%\Notepad++ as your path, I am going to assume you have the 64-bit Notepad++ in a 64-bit Windows OS.

        So when you installed, you didn’t get HKCR\*\shellex\ContextMenuHandlers\ANotepad++64,
        which directs to HKCR\CLSID\{...}\, which points to Notepad++.exe’s installed location? Because that’s what the installer tries to do, in my experience. And that should set up the Edit with Notepad++ right-click entry for all file types.

        With 64-bit Windows 10, that sometimes doesn’t work… not because Notepad++ or its installer is doing anything wrong, but because in some configurations of Windows, the OS is starting to move away from always honoring that old-style association, preferring instead to use it’s “OpenWith” list.

        In another post from last month (linked here), I pointed another user to look for a bad setting in HKCU\Software\Classes\Applications\notepad++.exe and/or HKLM\Software\Classes\Applications\Notepad++.exe – one or both of those may have accidentally gotten set to %ProgramFiles(x86)%\Notepad++\notepad++.exe instead of %ProgramFiles%\Notepad++\notepad++.exe, in which case Windows won’t allow “Open With” to get assigned to Notepad++. It may be in certain circumstances that the OpenWith confusion makes the edit-with-notepad++ global entry not work… I haven’t experimented with that.

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