notepad++

设置

右键菜单

bash 复制代码
::===========================================================================
:: bdrun_admin.cmd version 0.0.1
::---------------------------------------------------------------------------
:: enable/disable notepad++ context menu
:: 
:: Copyright (c) 2016-2018 Anon Technologies, Inc. All rights reserved.
::===========================================================================
:: when        who     what, where, why
:: ---------   ---     ------------------------------------------------------
:: 2023-9-15   bob     enable context menu by regedit
::===========================================================================

@echo off
chcp 65001

cd /d %~dp0

title Notepad++ 石键菜单添加/删除工具
SetLocal EnableDelayedExpansion

echo 1.添加 Notepad++ 右键菜单
echo --------------------------
echo 2.删除 Notepad++ 右键菜单
echo --------------------------

Set /p u=请输入数字并按 Enter 确定:

If "%u%"=="1" call :reg_npp_ctx_menu
If "%u%"=="2" call :unreg_npp_ctx_menu

goto :eof

:reg_npp_ctx_menu
    echo enable context menu for %cd%\notepad++.exe
    reg add "HKEY_CLASSES_ROOT\*\shell\Notepad++" /t REG_SZ /v "" /d "Edit with &Notepad++" /f
    reg add "HKEY_CLASSES_ROOT\*\shell\Notepad++" /t REG_EXPAND_SZ /v "Icon" /d "%cd%\notepad++.exe,0" /f
    reg add "HKEY_CLASSES_ROOT\*\shell\Notepad++\command" /t REG_SZ /v "" /d "%cd%\notepad++.exe ""%%1""" /f
    pause
goto :eof

:unreg_npp_ctx_menu
    echo disable context menu for %cd%\notepad++.exe
    reg delete "HKEY_CLASSES_ROOT\*\shell\Notepad++" /f
    pause
goto :eof
相关推荐
matlab_xiaowang3 天前
【2025】Notepad++安装教程保姆级一键安装教程(附安装包)
其他·notepad++
SY_FC4 天前
uniapp阿里云验证码使用
阿里云·uni-app·notepad++
billxin06214 天前
【NotePad++设置自定义宏】
notepad++
硫酸锌015 天前
Notepad++近期版本避雷
notepad++
半仙儿~7 天前
微信小程序长按识别图片二维码
微信小程序·小程序·notepad++
Js_cold8 天前
Notepad++使用技巧1
前端·javascript·fpga开发·notepad++
Js_cold9 天前
Notepad++常用设置
前端·javascript·fpga开发·notepad++
腾讯云qcloud075513 天前
腾讯位置商业授权微信小程序路线规划
notepad++
YuShiYue19 天前
【uni-app】自定义导航栏以及状态栏,胶囊按钮位置信息的获取
uni-app·notepad++
黑客飓风20 天前
当GitHub宕机时,我们如何协作?
github·notepad++