如何使用html在浏览器中执行exe文件 [英] how to execute a exe file in browser using html

查看:1209
本文介绍了如何使用html在浏览器中执行exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用HTML在浏览器中执行exe文件。



我该怎么办?



请帮帮我。



Rgds,

Narasiman P.

解决方案

很抱歉,但这没什么意义。



HTML是一种标记语言,而不是编程语言。它不会自行执行,因此无法调用其他可执行文件。



然后,浏览器位于客户端。您想要运行的EXE在哪里?在服务器上?如果有一百万人向您发送请求服务器,它会运行一百万次吗?



或者您想将其下载到客户端并执行它那里?这可能被解释为攻击,在某些国家/地区可以在法庭上获得预约。


假设客户端计算机上已经安装了可执行文件,您可以尝试以下想法:

创建自己的协议并将其信息存储在注册表中的适当位置;协议的处理程序是您的可执行文件。在您的HTML页面中,添加一个使用您的协议的链接,例如

< a href =narasiman:// a_parameter>点击此处打开可执行文件< / a>

i want to execute a exe file in browser using HTML.

for that how can i do?

please help me.

Rgds,
Narasiman P.

解决方案

Sorry, but that makes very little sense.

HTML is a markup language, not a programming language. It is not executed itself and therefore cannot call other executables.

Then, a browser is on the client side. Where is the EXE you want to run? On The server? If a million people people send a request to you server, will it then be running a million times?

Or do you want to download it to the client and execute it there? That could be interpreted as an attack and in some countries earn you an appointment before a court.


Assuming that the executable is already installed on the client computer, you can try following idea:
create your own "protocol" and store its information in the appropriate place in the registry; the handler for the protocol is your executable. In your HTML page, add a link which uses your protocol, i.e. something like
<a href="narasiman://a_parameter">Click here to open the executable</a>


这篇关于如何使用html在浏览器中执行exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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