创建注册表文件: openFiddler.reg
存放在E:\test\openFiddler.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\protocolName]
@="protocolName Protocol""URL Protocol"="" [HKEY_CLASSES_ROOT\protocolName\DefaultIcon]@="E:\\Fiddler\\Fiddler.exe"E:\Fiddler
[HKEY_CLASSES_ROOT\protocolName\shell]
@=""[HKEY_CLASSES_ROOT\protocolName\shell\open]
@=""[HKEY_CLASSES_ROOT\protocolName\shell\open\command]
@="\"E:\\Fiddler\\Fiddler.exe\" "index.html内容
<button οnclick="window.location.href='myprotocol://E:\\test\\openFiddler.reg'">打开Fiddler</button>
<a href="myprotocol://E:\test\openFiddler.reg">打开Fiddler2</a>
先进入E:\test中执行一次注册表文件,之后就可以点击链接或者按钮调用本地应用