Acess Pendrive通过我在C#的网站 [英] Acess Pendrive Through My website in C#

查看:67
本文介绍了Acess Pendrive通过我在C#的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过我的网站访问我的pendrive。

How to acess My pendrive through my website.

推荐答案

如果你的意思是连接到你的客户端计算机(运行浏览器的那个)的pendrive,那么,你不能 - 安全不会让你。如果可以的话,恶意网站也是如此 - 这将是一件坏事。客户端可以访问它并从中上传文件给您,或者您可以将他下载的内容发送到笔式驱动器,但您无法从您的网站指定目的地。



有一个例外,但它需要启用IE,启用ActiveX并且用户确认允许运行ActiveX控件 - 这只发生在0.0001%的用户中,因为默认情况下它们全部被禁用防止恶意网站正在做你正在尝试的...



如果你在谈论连接到你的网络服务器的pendrive,那么它只是另一个驱动器,所以只要你有适当的访问权限(不保证)您只需通过驱动器号作为正常路径访问它。
If you mean a pendrive attached to your client computer (the one running the browser) then pretty much, you can't - security won't let you. If you could, so could malicious sites - and that would be a Bad Thing. The client can access it and upload a file from it to you, or you can send him a download which he saves onto the pen drive, but you can't specify the destination from your website.

There is an exception to this, but it requires IE, ActiveX enabled and the user to confirm that your ActiveX control is allowed to run - and this happens only in 0.0001% of users as it's all disabled by default to prevent malicious sites doing exactly what you are trying...

If you are talking about a pendrive attached to your webserver, then it's just another drive so provided you have the appropriate access permissions (not guaranteed) you just access it via the drive letter as a normal path.


这篇关于Acess Pendrive通过我在C#的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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