如何在Web应用程序中的客户端系统上打开.exe文件 [英] How to open .exe file On client system in a Web Application

查看:359
本文介绍了如何在Web应用程序中的客户端系统上打开.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,在这里我想在服务器上的客户端系统上打开 .exe ,这意味着在IIS中托管我的站点之后。当用户点击我网站上的链接时,是否可以在客户端上打开例如记事本或Windows媒体播放器?

I am developing a web application, Here I want to open .exe on client system from server, that means after hosting my site in IIS. Is it possible to open for example notepad or windows media player on client when the user clicks on a link on my web site?

推荐答案

这是不可能的。如果可能的话 - 它应该立即删除。
原因很简单 - 安全性,如果您使用浏览器,几乎意味着一切。

This is not possible. And if it will be possible - it should be removed immediately. The reason for this is simple - security, it means almost everything if you working with browser.

如果您要发布一些外部可执行文件 - 只需生成WPF或WinForms应用程序客户端,并与WCF服务进行通信。这样您就可以在客户端使用您想要的所有内容。

If you want to launch some external executables - just make WPF or WinForms application client, and talk with WCF service. This way you will be free to use everything you want on client side.

这篇关于如何在Web应用程序中的客户端系统上打开.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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