如何使用Visual C#搜索目录 [英] How to search directories by using Visual C#

查看:75
本文介绍了如何使用Visual C#搜索目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai all

我们如何像在Windows中一样使用Visual C#来搜索目录.
可以提供有关代码的任何帮助..
在此先感谢

hai all

How can we search directories by using Visual C# as search in windows do.
can any help with code..
thanks in advance

推荐答案

http://support.microsoft.com/kb/303974 [ ^ ]


浏览以下代码,它将为您提供基本的IDEA

go through the below code, it will give you a basic IDEA

DirectoryInfo dd = new DirectoryInfo("c:\\");
           dd.GetFiles("<your search critatia>", SearchOption.AllDirectories);


如果您想使用全文搜索器,可以在这里查看我的文章: hOOt-全文搜索引擎 [
If you want a full text searcher you can look at my article here : hOOt - full text search engine[^]


这篇关于如何使用Visual C#搜索目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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