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
相关推荐
奋斗者1号1 天前
Cursor 编辑器中的 Notepad 功能使用指南
编辑器·notepad++
耶啵奶膘3 天前
uniapp+vue2+h5图片下载保存,微信浏览器、非微信浏览器
uni-app·notepad++
野盒子4 天前
前端小程序面试题
前端·小程序·notepad++
Murrays10 天前
【notepad++】如何设置notepad++背景颜色?
notepad++
疯狂的沙粒10 天前
uniapp 开发企业微信小程序,如何区别生产环境和测试环境?来处理不同的服务请求
微信小程序·uni-app·notepad++
轩11510 天前
实现购物车微信小程序
微信小程序·小程序·notepad++
m0_7263658310 天前
2025年微信小程序开发:趋势、最佳实践与AI整合
人工智能·微信小程序·notepad++
挑战者66688812 天前
Notepad++找回自动暂存的文件
notepad++
不剪发的Tony老师12 天前
再见Notepad++,你好Notepad--
notepad++
山河故人16316 天前
UniApp微信小程序自定义导航栏实现
微信小程序·uni-app·notepad++