使用绝对路径在客户端系统中打开一个文件夹 [英] Open a folder in client system with absolute path

查看:60
本文介绍了使用绝对路径在客户端系统中打开一个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我只想在客户端系统中打开一个具有数据库绝对路径的文件夹.在ASP.NET中使用c#可以做到这一点吗?

Hi,

I just want to open a folder in client system with specified absolute path from database .Is this possible with in ASP.NET with c# ?

推荐答案

AFAIK,答案是不.出于安全原因,不允许通过浏览器与客户端计算机进行交互.
AFAIK, the answer is NO. Interaction to a client machine through a browser is not allowed due to security reasons.


如果要对客户端系统文件进行操作,则需要使用 FileSystem ActivexObject .
使用ActiveX可以,但是为此,您需要获得用户的许可才能在系统上运行它.
另外,还需要处理一些安全设置,例如允许已签名的未签名的ActiveX".

更新:
按照OP的要求,这里有一个示例链接: MSDN:FileSystemObject对象 [ ^ ]
If you want to do something on client system files, you need to use FileSystem ActivexObject.
using ActiveX you will be able to, but for this you need to have permission from the user to run it on the system.
Also, some security setting like Allow signed-unsigned ActiveX needs to be handled.

UPDATE:
As per OP asked, here is a sample link: MSDN: FileSystemObject Object[^]


这篇关于使用绝对路径在客户端系统中打开一个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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