网页打开本地exe程序

新建register.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTexe1]
@="exe1 Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOTexe1shellopencommand]
@="F:\jiaoshi\fb2\jiaoshi_ship\jiaoshi_ship.exe"


[HKEY_CLASSES_ROOTexe2]
@="exe2 Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOTexe2shellopencommand]
@="F:\jiaoshi2\hello.exe"

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

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

原文地址:https://www.cnblogs.com/codeit/p/14262739.html