创建注册表
将exe程序加入到注册表 可带参数:
创建txt 将一下内容复制进去,修改exe路径,复制后将文件名改为 名称.reg
//
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\hd]
@=“hd Protocol”
“URL Protocol”=""
[HKEY_CLASSES_ROOT\hd\DefaultIcon]
@=“D:\Debug\YKLimisTools.exe”
[HKEY_CLASSES_ROOT\hd\shell]
@=""
[HKEY_CLASSES_ROOT\hd\shell\open]
@=""
[HKEY_CLASSES_ROOT\hd\shell\open\command]
@="“D:\Debug\YKLimisTools.exe” "
//
在web端可以直接使用a标签调用
< a href=“hd://D:\exe.reg”>打开程序</ a>