文件搜索关键字 [英] File Search for keywords
本文介绍了文件搜索关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好:)
是否有人根据不同的代码页提供任何源代码搜索引擎文件来查找关键字?
Hello :)
Does anyone have any source code search engine files for keywords in the light of different code pages?
推荐答案
TRY
TRY
System.IO.Directory;
然后获取所有逻辑驱动器的列表,使用getdirectories
最后是Fileinfo
的getfiles
和extension
属性.
对于所有这些,一个Foreach循环就足够了.现在,您可以使用正则表达式来增强搜索...
Get the list of all logical drive then, use getdirectories
and finally getfiles
and extension
property of Fileinfo
.
For All these a Foreach loop is sufficient. Now on u can use regex to boost up search...
这篇关于文件搜索关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文