如何查找具有指定路径的文件是否存在于客户端系统中? [英] How To I Find Whether A File With A Specified Path Is Exists In Client System Or Not ?

查看:81
本文介绍了如何查找具有指定路径的文件是否存在于客户端系统中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都可以帮我找到如何在客户端系统中找到具有指定路径的'文件'吗?

(想想我初学者)

谢谢你以前。

Hi All,
Can anyone help me how to find a 'file' with a specified path is exists in the client system or not ?
(Think i'm a beginner)
Thank You In Before.

推荐答案

出于安全考虑,你不能这样做。
You can't do this for security reasons.


你不能在实践中:服务器系统无法直接访问客户端硬件 - 它们必须通过浏览器。



虽然它是理论上可行,在实践中它不会起作用:为了做到这一点,你的客户将必须运行IE。没有其他浏览器可以让你这样做。然后,IE必须配置为允许您向其发送ActiveX控件(默认情况下禁用)。然后IE必须运行ActiveX控件(这被设置为首先从用户获取权限,并警告他这可能是一个危险的事情默认情况下)。

然后......你可以编写ActiveX控件。



即使你能找到它,也不会对你有任何帮助很好,因为你无法从服务器上访问文件来做任何事情。



想一想:如果你有你需要的访问权限,那么会是其他人 - 包括恶意网站......
You can't in practice: Server systems do not have direct access to client hardware - they have to go via the browser.

While it is in theory possible, in practice it won't work: In order to do it, your client will have to be running IE. No other browser will let you do it. Then, IE has to be configured to allow you to send it an ActiveX control (and this is disabled by default). Then IE has to run the ActiveX control (and this is set to "get permissions from the user first, and warn him that this is potentially a dangerous thing to do" by default).
And then...you can write the ActiveX control.

Even if you could find out, it wouldn't do you any good as you can't access the file to do anything with it from the server anyway.

Think about it: if you had the access you'd need, so would everyone else - including malicious sites...


这篇关于如何查找具有指定路径的文件是否存在于客户端系统中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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