<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js</title>
<script language="JavaScript">
function open_exe(shellp) {
try {
a = new ActiveXObject("wscript.shell");
a.run(shellp);
} catch(e) {
alert('找不到文件"' + shellp + '"(或它的组件之一)。请确定路径和文件名是否正确.')
}
}
</script>
</head>
<body>
<button onclick="open_exe('file:///D:/Tencent/QQLite/Bin/QQScLauncher.exe')">打开QQ</button>
</body>
</html>
网友评论