如何在vb.net中制作文件或文件夹查找器 [英] How To make File Or Folder Finder in vb.net

查看:114
本文介绍了如何在vb.net中制作文件或文件夹查找器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb.net中创建文件或文件夹查找器

解决方案

如果这是真正的VB.NET - 即基于网站的解决方案 - 那么你可以' t。

服务器无法访问客户端硬件(除非很少发生)并且由于VB代码在服务器上运行而不是客户端,任何文件或文件夹查找器都可以在服务器硬盘上运行不是客户端和浏览服务器硬盘 - 一个主要的安全风险,即使网站主机设置允许它,但不一定是这种情况。


除了格里夫的帖子。 ..



如果它是一个Windows窗体应用程序,那么你可以使用 OpenFileDialog [ ^ ]或 FolderBrowserDialog [ ^ ]


检查这些:

在vb.net中搜索或查找文件 [ ^ ]

vb.net中的文件搜索 [ ^ ]

How To make File Or Folder Finder in vb.net

解决方案

If this is realy VB.NET - i.e. a web site based solution - then you can't.
The server has no access to the client hardware (except in cases which occur very infrequently) and since VB code runs on the server not the client any file or folder finder would work on the server HDD not the client and browse the Server HDD - a major security risk, even if the web host is set up to allow it, which is not necessarily the case.


In addition to Griff's post...

If its a Windows Forms application, then you can use OpenFileDialog [^]or FolderBrowserDialog[^]


Check these:
search or find file in vb.net[^]
File Search in vb.net [^]


这篇关于如何在vb.net中制作文件或文件夹查找器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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