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