chrome网页中打开exe

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VMS]
@="URL:VMS"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\VMS\DefaultIcon]
@="chrome.exe,1"

[HKEY_CLASSES_ROOT\VMS\shell]

[HKEY_CLASSES_ROOT\VMS\shell\open]

[HKEY_CLASSES_ROOT\VMS\shell\open\command]
@="E:\\Debug\\CameraPlayer.exe  %1"html

 

以上内容另存为WebCall.reg,替换最后一行为实际要打开的exe文件全路径  最后的%1表明参数chrome

双击导入注册表shell

网页中加入函数

<a href="VMS://uuid,admin,张三"> vms </a>ui

浏览网页 点击超连接便可打开exespa

 

程序中接受传递的值htm

Main函数中blog

MessageBox.Show(e.Args.Length + "|" );get

if (e.Args.Length > 0)
{
string arg = e.Args[0];string

string para = arg.Substring(arg.IndexOf(":")+1, arg.Length- arg.IndexOf(":") -1);
string[] params= para.Split(',');

}

 

From:http://www.javashuo.com/article/p-btsylcxm-hh.html

相关文章
相关标签/搜索