转:自定义地址协议

自定义地址协议

如何自定义协议 Web 开发 - 应用服务器 - CSDN社区
http://topic.csdn.net/t/20060321/10/4628268.html

如何编写ie的自定义协议 VC-MFC - 网络编程 - CSDN社区
http://topic.csdn.net/t/20031015/18/2359362.html

注册自定义URL协议 - dropme的专栏 - CSDNBlog
http://blog.csdn.net/dropme/archive/2006/05/29/761203.aspx

URL Protocol--CoolICE WebLog
http://www.blogdriver.com/coolice/414334.html

URL Protocol Handler demo
http://www.2ccc.com/article.asp?articleid=3826

IE浏览器 自定义地址协议的实现_widebright--邓广明 ★★★★★
http://hi.baidu.com/widebright/blog/item/eaa2ab017b91f3061d9583b1.html

0627 WEB点击运行客户端 资料
http://www.shengfang.org/blog/p/0627WEBRUNCLIENT1info.php

MSDN ★★★★★
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/pluggable/overview/appendix_a.asp?frame=true

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
我作了一个(以我的网名作例)

=============== 注册表文件 Shortway.reg 保存后导入注册表==============
程序代码 程序代码
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Shortway]
@="Shortway 自定义协议"
"URL Protocol"=hex(2):00,00

[HKEY_CLASSES_ROOT\Shortway\DefaultIcon]
@="C:\\WINDOWS\\system32\\cmd.exe,0"

[HKEY_CLASSES_ROOT\Shortway\shell]

[HKEY_CLASSES_ROOT\Shortway\shell\open]

[HKEY_CLASSES_ROOT\Shortway\shell\open\command]
@="\"C:\\test.bat\" \"%1\""


=============== 接收程序 test.bat 保存在 C: 下(我用一个批处理文件简单示例)===============
程序代码 程序代码
echo %1 >> c:\output.txt


=============== 演示网页 test.htm ===============
[html]<a href="Shortway:Hello World!">Hello World!</a><br/>
<a href="Shortway:Let me test!">Let me test!</a><br/>
<a href="Shortway://http://community.csdn.net/Expert/topic/5381/5381608.xml">Let me test!</a><br/>[/html]


然后打开test.htm,点击超级链接,你就看到效果了。

呵呵,因为ppstream 出了点播版,pps:没有加上去,所以我仿照ppstream:加了上去。结果,就成了真正的点播版了。 

转自:http://www.wjmhxx.com/shortway/article.asp?id=26

原文地址:https://www.cnblogs.com/analyzer/p/1665227.html