`.TXT`文件与Notepad ++的关联“停止工作”

I recently formatted and then reinstalled everything, but oddly now, Windows 7 refuses to let me set Notepad++ as the default .TXT editor.

我尝试像往常一样设置“打开方式”文件:

  • right click a .TXT file
  • Open With...Choose DefaultBrowse
  • paste "C:\Program Files (x86)\Notepad++\notepad++.exe"

... but Notepad++ doesn't show up in the dialog (image below), and the file instead opens with lame old Notepad.exe.

However when I open "C:\Program Files (x86)\Notepad++\notepad++.exe" from the ![Windows Key][oldwinlogo]+R Run dialog, Notepad++ opens without a problem.

Also, certain files' context menu have Edit with Notepad++, which also works fine.

From my registry, in case it's relevant:

[HKEY_CLASSES_ROOT\.txt]
  Default="txtfile"
  Content Type="text/plain"
  PerceivedType="text"

[HKEY_CLASSES_ROOT\.txt\PersistentHandler]
  @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.txt\ShellNew]
  ItemName="@%SystemRoot%\system32\notepad.exe,-470"  
  NullFile=""

我尝试重新启动...有什么想法吗?

编辑:我也曾尝试以管理员身份直接在NPP中编辑协会,但没有成功。请注意,我正在使用Windows 7。

(我刚刚辛苦地完成了所有N ++设置/主题/插件/ ftp / etc的设置,并且在今天早晨尝试之前一直运行良好,因此我希望除了重新安装N ++以外,寻求其他解决方法。)

评论