网页打开本地exe程序

新建register.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exe1]
@="exe1 Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\exe1\shell\open\command]
@="F:\\jiaoshi\\fb2\\jiaoshi_ship\\jiaoshi_ship.exe"


[HKEY_CLASSES_ROOT\exe2]
@="exe2 Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\exe2\shell\open\command]
@="F:\\jiaoshi2\\hello.exe"

exe1是协议名,hello.exe是可执行文件路径。

网页通过exe1://调用hello.exe程序。

posted @ 2021-01-11 16:17  盛世芳华  阅读(468)  评论(0编辑  收藏  举报