从asp.net在客户端机器上分解exe文件 [英] Trigering an exe file on client machine from asp.net

查看:71
本文介绍了从asp.net在客户端机器上分解exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户端计算机上有一个exe文件,我想通过我的asp.net中的shell命令调用。我如何从asp.net调用它?当我给它路径ex:C:/App/app.exe它进入服务器C:目录,我有一个文本文件也位于客户端机器上,我想向它添加数据,然后读取到数据库,同样的问题,当我给它在客户端机器上的文本文件的路径ex:c:/App/app.txt它将文件放在服务器而不是客户端机器上的文件。



如何从服务器端代码获取客户端机器上的路径?

I have an exe file on client machine that I want to call by shell command from my asp.net. How can I call it from asp.net? When I gave it the path ex: C:/App/app.exe it went to the server C: directory and I have a text file located also on client machine that I want to add data to it and then read then to database, also same problem when i gave it the path for the text file on client machine ex: c:/App/app.txt it located the file on server and not the one on client machine.

How can I make it take the path on client machine from server side code?

推荐答案

基本上,除非有非常特殊的条件,否则适用于99.99%的安装,你不能这样做。



如果你的用户使用IE,并且他们启用了ActiveX,那么你可以。但否则没有。



想一想:如果你出于合法的原因可以做到这一点,恶意网站也可以这样做....
Basically, unless there are very special conditions which do not apply in 99.99% of installations, you can't do it.

If your user is using IE, and they have ActiveX enabled, then you can. But otherwise no.

Think about it: if you could do it for legitimate reasons, malicious sites could do it as well....


这篇关于从asp.net在客户端机器上分解exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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