从网站在客户端计算机中运行exe [英] Run an exe in client machine from a website

查看:83
本文介绍了从网站在客户端计算机中运行exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经开发了一个exe,并创建了一个网站来下载该exe.

We have developed an exe and we have created a website to download that exe.

现在可以在客户端计算机上单击一次按钮来运行该exe.即,如果用户单击网站上的按钮,则必须下载并运行该exe.

Now is there any possibility to run that exe on a single button click in the client machine. ie if user clicks on a button in the website it has to download and run that exe.

因此,在单击链接按钮时,它必须显示运行"对话框,而不是保存"对话框.

So while clicking the link button, it have to show a "Run" dialogue box instead of the "save" dialogue box.

在单击运行"后,必须在客户端计算机中保存并运行exe.

And upon clicking the "Run" it have to save and run the exe in the client machine.

任何人都可以对此提出建议.

Can anyone give suggestions for this.

推荐答案

由于安全问题,无法自动执行该过程.唯一想到的就是写类似这样的东西:

It is not possible to automate that process due to security concerns. The only thing that comes to mind is to write something like:

    <a href="myfile.exe" type="application/octet-stream">Download</a>

但这只会提示用户运行或保存它.老实说,最好记录一下用户/访客要遵循的程序.

But that will only prompt the user to either run it or save it. To be honest, you are better off just documenting the procedure for your users/visitors to follow.

希望有帮助!

这篇关于从网站在客户端计算机中运行exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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