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