首页 > 技术文章 > web网页调用本地cs客户端程序exe

axin85 2017-10-16 21:07 原文

1.reg注册表文件注册WST

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\WST]
"URL Protocol"="C:\\WSTStart.exe"
@="WSTProtocol"
[HKEY_CLASSES_ROOT\WST\DefaultIcon]
@="C:\\WSTStart.exe,1"
[HKEY_CLASSES_ROOT\WST\shell]
[HKEY_CLASSES_ROOT\WST\shell\open]
[HKEY_CLASSES_ROOT\WST\shell\open\command]
@="\"C:\\WSTStart.exe\"\"%1\""

2.把exe文件放在C盘根目录

3.wen网页用a标签调用注册表

<href=" WST://">     alt="点击这里">     </a>  

推荐阅读