<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://