无忧启动论坛

标题: 设置右键用Notepad++,出错 [打印本页]

作者: ster1357A    时间: 2020-6-23 22:55
标题: 设置右键用Notepad++,出错
设置右键用Notepad++,出错

该文件没有与之关联的应用来执行该操作。




同样的设置。notepad3就没问题。如果选择打开方式 都可以 使用Notepad++,



手工添加注册表,跟导入的一样。



作者: scq330    时间: 2020-6-23 23:46
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="用&Notepad++打开"
"Icon"="D:\\Program Files\\npp.6.8.8.bin\\notepad++.exe"

[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="D:\\Program Files\\npp.6.8.8.bin\\notepad++.exe \"%1\""
作者: 20121010168    时间: 2020-6-24 08:50
下面这种 ,或者直接替换掉系统的
  1. @ECHO OFF
  2. PUSHD %~DP0
  3. taskkill /f /im notepad*>NUL 2>NUL
  4. Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit)
  5. Rd "%WinDir%\System32\test_permissions" 2>NUL
  6. SetLocal EnableDelayedExpansion
  7. if not exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d ""%~dp0Notepad2.exe" /z" /f
  8. if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d ""%~dp0Notepad2_x64.exe" /z" /f
  9. exit
复制代码

作者: 都市浪子666    时间: 2020-6-24 10:38
本帖最后由 都市浪子666 于 2020-6-24 10:40 编辑

引号的问题。。。
  1. Windows Registry Editor Version 5.00
  2. [HKEY_CLASSES_ROOT\*\shell\用记事本CC--notepad\command]
  3. @=""D:\\Program Files\\Notepad++7.56\\notepad++.exe"   "%1""
复制代码



"D:\Program Files\Notepad++7.56\notepad++.exe"   "%1"

路径有空格的,要用双引号括起来,。
后面的%1   也用双引号括起来  (这样保险一点)



作者: holley2008    时间: 2020-6-24 10:41
导出我这边正常的给你参考??
  1. Windows Registry Editor Version 5.00

  2. [HKEY_CLASSES_ROOT\*\shell\Notepad++]
  3. @="使用Notepad++打开"
  4. "Icon"="F:\\Program Files\\Notepad++\\Notepad++.exe"

  5. [HKEY_CLASSES_ROOT\*\shell\Notepad++\Command]
  6. @=""F:\\Program Files\\Notepad++\\Notepad++.exe" "%1""
复制代码



作者: ster1357A    时间: 2020-6-25 15:41
谢谢大家,以上方法之前都试过了,都不行。直接重新下载安装包解决。安装完,注册里也没有这一项,右键也可以使用。http://download.notepad-plus-plus.org/repository/7.x/7.8.8.RC/

注册表搜索,Eith with Notepad++,居然没找到。

作者: zhxy9804    时间: 2020-6-25 18:42
路径不对,进入注册表修改,然后导出,自己改容易改错




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3