如何按文件扩展名搜索? [英] How to Search By File Extension?

查看:109
本文介绍了如何按文件扩展名搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我已经创建了一个具有一定范围的表单来搜索目录和子目录,但是我不希望搜索所有文件.我仅需要搜索我指定的文件扩展名(例如.sys,.exe等)时需要帮助.我使用的示例使用组合框(例如C:\ .EXE)填充了目录的内容,该组合框会拉出所有以.exe结尾的文件,现在有一些方法可以执行这没有使用列表框?我的意思是要问我是否只能扫描这些文件扩展名,并且如果不是该特定文件扩展名就可以跳过该文件?

At the present time I have created a form with some recrusion to search directories and sub directories but I do not wish to search all files. I need help with searching only the file extensions that I specify such as .sys, .exe and so forth. The example i have populates the contents of the directory with the selection I have made with a combobox (Eg. C:\ .EXE) which pulls up all files ending with the file extension .exe , now is there some way to go about doing this without the use of a listbox? What I mean to ask is there anyway that I can only scan thoes file extensions and if its not that specific file extension to skip the file?

推荐答案

I''m不清楚你的问题.但是,请参见链接.
I''m not clear about your question. But let see this link.


这篇关于如何按文件扩展名搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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