Sign-up....

如何在网页中调用可执行文件(本地运行的html页面,直接点击可以运行,转为http://方式从服务端就没办法运行了)

提示错误:automation 服务器不能创建对象,代码如下:

<script language="JavaScript" type="text/JavaScript">

<!--

function run_cell()

{

var shl=new ActiveXObject("Wscript.shell");

shl.Run("cnccell.exe");

}

//-->

</script>

</head>

<body>

<INPUT id="Button2" style="WIDTH: 152px; HEIGHT: 46px" type="button" value="单元控制" name="Button2" onclick="run_cell()">

</body>

[343 byte] By [msdn] at [2007-8-14 19:11:06]
# 1 Re: 如何在网页中调用可执行文件(本地运行的html页面,直接点击可以运行,转为http://方式从服务端就没办法运行了)

权限问题,如果不这样的话,网上随便什么网站都能把你的注册表改得一塌糊涂了

加如信任站点试试

liuxiaoyi666 at 2005-4-28 22:19:42 >
# 2 Re: 如何在网页中调用可执行文件(本地运行的html页面,直接点击可以运行,转为http://方式从服务端就没办法运行了)

没有权限,,,,

gounliey at 2005-4-28 23:29:56 >

Web

All Classified