TTTTT

因为每一步都是必要 所以每一步都要专注

导航

网页中调用客户端应用程序

     
 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>TOKY.CHI.SPS.TEST</title>
</head>

<SCRIPT language=JavaScript>
function Run(Path) {
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(Path);
objShell = null;
}
catch (e){alert('找不到文件"'+Path+'"(或它的组件之一)。路径或文件名是否正确? 所需的库文件是否均可用?') }
}
</SCRIPT>
<body>
<a href="#" onclick="Run('file:///C:/Program%20Files/Windows%20Media%20Player/wmplayer.exe')">点击败这里(这个路径一定要注意空格和斜杆方向)</a>
</body>
</html>

 
     

posted on 2006-06-21 18:24  TOKY  阅读(833)  评论(0编辑  收藏  举报