<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> |