在网站(asp.net)的客户端上运行exe文件 [英] run exe file on client in a website(asp.net)

查看:81
本文介绍了在网站(asp.net)的客户端上运行exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,
我有一个问题,请帮助我,这对我来说真的很重要
我如何在asp.net网站上的客户端上运行EXE文件.
我希望它在IE中起作用
我看到了一些可以在IE上运行的ActiveX文件.

Hi experts,
i have a question please help me its really essential for me
how i can run EXE file on client in a website in asp.net.
i want it works in IE
i saw some ActiveX file that works on some IE.
Thanks in advance for an answer.

推荐答案

由于存在很高的安全风险,因此如果没有现代浏览器中的用户操作,您将无法做到这一点.您可以在IE6中使用WScript.Shell,但现在不行了.在这种情况下,用户操作"实际上是在客户端上安装一些东西.因此,您实际上可以使其与ActiveX,Java等一起使用,但是在调用它之前必须先在客户端安装它.
但这确实是一个有趣且清晰的解决方案:使用协议处理程序.参见此处: http://www.openwinforms.com/run_exe_from_javascript.html [
Due to high security risk, you cannot do this without user action in the modern browsers. You could in IE6 with WScript.Shell, but not anymore. "User action" in this case is actually installing something on client side. So you can actually make it work with ActiveX, Java, etc, but it has to be something installed on client side before invoking it.
But this is really an interesting and clear solution: use protocol handler. See here: http://www.openwinforms.com/run_exe_from_javascript.html[^]


这篇关于在网站(asp.net)的客户端上运行exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆