<win-r> regedit
打开注册表,然后自定义协议
自定义协议注册表.reg
打开后导入
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTmbexe]
"URL Protocol"="F:\\myTools\\SP模板\\dist\\win-unpacked\\添加模板消息.exe"
"@"="mb"
[HKEY_CLASSES_ROOTmbexeshell]
[HKEY_CLASSES_ROOTmbexeshellopen]
[HKEY_CLASSES_ROOTmbexeshellopencommand]
@=""F:\\myTools\\SP模板\\dist\\win-unpacked\\添加模板消息.exe" "%1""
设置好后浏览器访问mbexe://