注册表写入自定义协议,网页打开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:\pro1.exe"


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

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

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

posted @ 2019-12-17 20:11  盛世芳华  阅读(884)  评论(0编辑  收藏  举报