注册表写入自定义协议,网页打开exe

新建文件:Register.reg,写入代码:

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOTexe1shellopencommand]
@="F:pro1.exe"


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

[HKEY_CLASSES_ROOTexe2shellopencommand]
@="F:\pro2.exe"

 双击注册,网页通过<a href="exe1://">打开第一个exe</a>调起exe查询

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