有时我们在右键点击->Edit With NotePadd++后,会出现 "ShellExecute failed(2): Is this command correct?",如下图:
解决方式如下:
1、打开注册表,在HKEY_CLASSES_ROOT 下搜索"notepad++.exe"。找到有 Title = "Edit with Notepad++" or "Edit with &Notepadd++的CLSID,
将其全部删除,
2、新建一个*.reg,内容如下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="Edit with &Notepad++"
"icon"="C:\\Program Files (x86)\\Notepad++\\Notepad++.exe"
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
@="\"C:\\Program Files (x86)\\Notepad++\\Notepad++.exe\" \"%1\""
保存,双击执行该reg即可。