比如我们想在浏览器中调用本机的记事本程序
1.在注册表里面新增如下并修改值
添加修改注册表以下地方: 当然是安装程序后直接可以注册表注入了,比如迅雷 qq等
HKEY_CLASSES_ROOT\senssic\shell\open\command
例如之前存在的:--HKEY_CLASSES_ROOT\https\shell\open\command
在"chrome路径" -- "%1"中间插入chrome的参数:
"chrome路径" --user-data-dir="Z:\User Data" -- "%1"
2.编写html如下
<a href="senssic://" >打开记事本</a>
然后点击一下就会弹出如下,每个浏览器弹出的不一样