从chrome浏览器打开.exe文件。 [英] Opening .exe file from chrome browser.

查看:461
本文介绍了从chrome浏览器打开.exe文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Chrome浏览器中从客户端计算机打开.exe。早期使用ActiveX对象完成此操作,但Chrome不支持ActiveX对象。我想在Chrome中实现此目的。





我的尝试:



我尝试使用Process类但没有解决问题

解决方案

Quote:

如何从Chrome浏览器中的客户端计算机打开.exe。早期使用ActiveX对象完成,但Chrome不支持ActiveX对象。



简答:

基本上,任何最近的浏览器都不支持ActiveX,因为这种可能性是主要的安全威胁。

Chrome和其他浏览器是专门为防止这种可能性而设计的。


你几乎不可能 - ActiveX只在IE中可用,甚至在默认情况下它被禁用了很快,因为它是一个巨大的安全漏洞。你会注意到即使是微软也没有把它留在Edge中,当他们发布它时!



想一想:如果你能做到,那么坏人也是如此 - 然后勒索软件将比现在更加严重;任何网站都可以在任何客户端上运行任何东西。



您从C#代码执行的任何内容都不会在客户端计算机上运行,​​它将始终在服务器上运行 - 包括Process和MessageBox类!


在发布问题之前,请在Google中进行搜索。这是您可能找到答案的链接之一。对不起,在以下链接中,回答是否定的。





如何从具有跨浏览器支持的网页启动窗口应用程序(.exe) [ ^ ]

How do I open .exe from Client's Machine in chrome Browser.Earlier this was done using ActiveX Object but as Chrome does not support ActiveX object.I want any alternative to achieve this in Chrome.



What I have tried:

I tried using Process class but didn't solve the issue

解决方案

Quote:

How do I open .exe from Client's Machine in chrome Browser.Earlier this was done using ActiveX Object but as Chrome does not support ActiveX object.


Short answer:
Basically, ActiveX is not supported in any recent browser because of this possibility which is a major security threat.
Chrome and other browsers are specifically crafted to prevent this possibility.


You pretty much can't - ActiveX was only ever available in IE, and even there it was disabled by default pretty damn quickly as it is a massive security hole. You will notice that even Microsoft didn't leave it in Edge when they released that!

Think about it: if you could do it, so could the "bad guys" - and then ransomware would be even more of a problem than it is now; any website could run anything on any client.

Nothing you execute from C# code will run on the client computer, it will always run on the server - and that includes the Process and MessageBox classes!


Kindly search in Google before posting your question. Here is one of the links where you might find your answer. I am sorry, here in the following link, answer is negative.


how to launch a window application(.exe) from a web page with cross browser support[^]


这篇关于从chrome浏览器打开.exe文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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