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
相关推荐
学习嵌入式的小周2 天前
Notepad++8.8.7下载安装(附安装包)
前端·notepad++
weixin_469273813 天前
Notepad link:一款极简、免注册的在线记事本工具
notepad++
AI砖家8 天前
AI编程—微信小程序开发规范
微信小程序·小程序·notepad++·ai编程
A24207349309 天前
微信小程序开发:常用基础语法与指令详解
微信小程序·小程序·notepad++
吠品9 天前
Java中实现拓扑排序的两种方式:Kahn算法和DFS
java·数据库·notepad++
2601_9659128311 天前
PDF转Excel工具横向评测:6款免费方案实测数据对比
pdf·excel·notepad++
AI行业学习13 天前
Claude Code + cc-switch + Git + Node.js 全套下载+安装+配置完整版
开发语言·git·python·前端框架·node.js·html·notepad++
AI行业学习14 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程【8.3】
git·python·安全·前端框架·node.js·html·notepad++
AI行业学习14 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程(2026最新·国内可用版)
人工智能·git·python·安全·node.js·html·notepad++
满栀58519 天前
uni-app 小程序开发实战:从路由踩坑、数据对接到 UI 优化的全方位复盘
ui·uni-app·notepad++