如何从Javascript运行Exe文件 [英] How Do I Run Exe File From Javascript

查看:74
本文介绍了如何从Javascript运行Exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有什么选择从javascript运行exe文件,除了ActiveXObject(Shell ...)?

What options do i have to run exe file from javascript except the ActiveXObject("Shell...)?

推荐答案

无。

出于安全原因,Javascript无法访问该计算机,或者各种恶意网站会在您的计算机上运行EXE文件。如果您能够这样做,他们也可以这样做。



ActiveX解决方案只能在IE上运行,并且只有在启用ActiveX控件时 - 默认情况下它们不能防止此类安全漏洞。



无论如何,如果可以的话它会对你有什么好处?它不适用于Mac,iPad,iPhone,Android设备或支持互联网的冰箱......
None.
For security reasons Javascript can't access the machine, or various malicious sites would be running EXE files on your computer whenever they felt like it. If you could do it, so could they.

And the ActiveX solution will only work on IE and only when ActiveX controls are enabled - which they aren't by default to prevent such security breaches.

Anyway, what good would it do you if you could? It wouldn't work on Macs, iPads, iPhones, Android devices, or internet enabled fridges...


这篇关于如何从Javascript运行Exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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