当前位置:网站首页>notepad++添加右键菜单的高级方式
notepad++添加右键菜单的高级方式
2022-06-09 15:48:00 【djc8小码农】
网上搜了一下类似的关键字,有很多方法,大多数都能用,但是要么要去编辑注册表(不放心啊),要么用reg文件(本质上还是编辑注册表),还有一种高级的方式,就是用bat,调用自带的NppShell_**.dll来添加,这种方式强烈推荐!
我参考了网上的大牛,见这里方法三https://www.cnblogs.com/mahocon/p/5212747.html
大牛说了NppShell_.dll文件有很多种,比如××为04,05啥的,但是我想要更加傻瓜的方式,所以对大牛的脚本修改了下,不敢独享,放出来罢!我改的脚本在指定NppShell_.dll文件名的前提下,自动搜索了一波,可以坚持一段时间了(以后版本升级可能会修改该文件名)
@Echo Off
set str=
title Notepad++右键菜单添加or卸载工具
SetLocal EnableDelayedExpansion
echo 1.添加Notepad++右键菜单
echo ------------------------
echo 2.卸载Notepad++右键菜单
echo ------------------------
for /L %%i in (1,1,10) do (
if exist NppShell_0%%i.dll set str=%%i
)
Set /p u=请输入数字并按Enter确定:
If "%u%"=="1" Goto regnp++
If "%u%"=="2" Goto unregnp++
:regnp++
echo NppShell_0%str%.dll
regsvr32 NppShell_0%str%.dll
exit
:unregnp++
echo NppShell_0%str%.dll
regsvr32 /u NppShell_0%str%.dll
exit在notepad++的目录建立一个bat文件,文件名随意,粘贴脚本进去,用管理员权限运行该bat,之后选择添加or卸载,即可!
边栏推荐
- May training (the 26th day) - collective search
- My Lord, times have changed...
- Consul learning
- 面试官问我一条update语句加了多少锁?我总结了全套八股文
- Practice of flask apscheduler stepping on pits
- 重构要点学习
- Example of rewriting the decomposition of cublas Lu into cublas matinv
- R语言plotly可视化:使用plotly可视化模型在整个数据空间的分类轮廓线(等高线)、使用meshgrid创建一个网格,其中每个点之间的距离由mesh_size变量表示
- Qscrollarea use tutorial to realize the setting interface that can slide up and down
- golang reflect反射:对基本数据类型、对struct结构体进行反射(获取值)代码示例
猜你喜欢
随机推荐
应用软件效率测试的执行策略
QScrollArea使用教程之实现可上下滑动的设置界面
Senior openstacker - Bloomberg, vexxhost upgraded to gold member of openinfra Foundation
twenty-four solar terms
The aquatic industry digital B2B e-commerce platform realizes fine management and drives enterprise performance growth
Async await return value description
Dapr .NET Core示例
MySQL advanced optimization 01 - 40000 word detailed database performance analysis tool (in-depth, comprehensive and detailed, for collection and standby)
67 2D绘图(反走样绘图 / 抗锯齿渲染)
virtualBox 虚拟机网卡设置
GoLand运行go程序时working directory的设置问题:报错路径找不到no such file or directory时需检查该配置
一个时代的终结!吴恩达经典《机器学习》课程本月关闭注册...然而
[CSDN 2021 annual summary] 110000 yuan in half a year, grinding a pestle into a needle
六月集训(第09天) —— 二分查找
Differences between single application and microservice invocation
技术 - 中台
May training (day 30) - topology sorting
Reconstruction essentials learning
618's money saving technology strategy is coming - experience the scene and get a 10 yuan cat super card!
微信小程序 思维导图









