我可以从Web执行Window Exe吗? [英] Can I execute Window Exe from Web?

查看:73
本文介绍了我可以从Web执行Window Exe吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好专家,

我有一个可执行文件,该文件的位置现在是下载"文件夹,我想从网页上执行该文件.

所以我想知道可以从Web运行此应用程序吗?


谢谢

Hello Experts,

I have a executable file which location is Download folder now i want to execute from it from web page.

So i want to know that it is possible to run this application from web?


Thanks

推荐答案

错误的主意.如果您使用的是IIS,则它将在沙盒环境中运行,该环境不允许您根据客户端的请求运行任何外部应用程序.请参见 http://en.wikipedia.org/wiki/Internet_Information_Services [
Bad idea. If you''re using IIS, it''s run in sandboxed environment, which won''t let you to run any external application by request from the client side. See http://en.wikipedia.org/wiki/Internet_Information_Services[^].

On a client side, this is remotely possible using ActiveX and object tag, but how can you guarantee your user has the component you need installed? You can demand that the user does it, but this is way too intrusive and not portable between Web browsers and OS platforms.

—SA


如果可执行文件是服务器端的,则可以使用Process类轻松执行.但是,在服务器上执行上载的可执行文件可能不是一个好主意,因为您不知道它们可能会做什么....潜在地,它们可能会做任何事情,包括删除您的网站或更糟.

如果将可执行文件下载到客户端,则无法从服务器执行该可执行文件:该文件位于可能是病毒活动"标题下,并且出于安全原因不可用.想一想:如果您的应用程序是Winforms,并且您的客户端有iPad,会发生什么?
If the executable is server side it can be executed easily, by using the Process class. However it may be a bad idea to execute uploaded executables on your server, as you do not have any idea what they may do... Potentially, they could do anything, including delete your website or worse.

If the executable is downloaded to the client, you cannot execute it from the server: that comes under the heading of "probably virus activity" and is not available for security reasons. Think about it: what would happen if your app was Winforms, and your client had a iPad?


这篇关于我可以从Web执行Window Exe吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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