网页端调用exe程序并传递参数
网页端:
<a class="btn btn-primary" href="mofangyunwms://type=makeform&code=<?php echo $o_code;?>&token=<?php echo $stoken;?>">一键生成(本地需先注册启动路径)</a>
注册表:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\mofangyunwms] @="mofangyunwmsProtocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\mofangyunwms\DefaultIcon] @="G:\\1\\1\\仓单信息表下载器.exe,1" [HKEY_CLASSES_ROOT\mofangyunwms\shell] [HKEY_CLASSES_ROOT\mofangyunwms\shell\open] [HKEY_CLASSES_ROOT\mofangyunwms\shell\open\command] @="G:\\1\\1\\仓单信息表下载器.exe \"%1\""
exe(VB6.0)
CommandStr = Command() If CommandStr <> "" Then msgbox CommandStr endif
