Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\myprotocol]
@="myprotocol Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\myprotocol\shell]
@=""
[HKEY_CLASSES_ROOT\myprotocol\shell\open]
@=""
[HKEY_CLASSES_ROOT\myprotocol\shell\open\command]
@="\"e:\\uc\\test.bat\"\"%1\""
echo %1 > e:\uc\123.txt
<!DOCTYPE HTML PUBLIC "-//W3 C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
</head>
<body>
<div>
<a href="myprotocol://123456">
执行可执行文件
</a>
</div>
</body>
</HTML>
这时,点击链接会调用 e:\uc\test.bat (相当于执行 e:\uc\test.bat "myprotocol://123456/"),
"myprotocol://123456/"