日期:2014-05-17 浏览次数:20625 次
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
function func(localuser,remotecomputer)
{
var direfilename = localuser + remotecomputer + ".txt";
var command = "-directory z:\\"+direfilename;
myobj.run(command);
//myobj.run(arg);
//myobj.xxxxx();
}
</script>
</head>
<body>
<div style="display:none;">
<OBJECT id="myobj" classid="CLSID:895B917E-885A-4DA0-BF89-12A03C205AB7"></OBJECT>
</div>
<a onclick="func('tom','127.0.0.1');">test</a>
</body>
</html>