如何使用Windows搜索按文件类型执行简单搜索 [英] How can I perform simple searches by file type with Windows Search

查看:320
本文介绍了如何使用Windows搜索按文件类型执行简单搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行Windows 2008的测试环境,出于性能原因,我不想在其中运行索引器.我需要能够对Windows之前的Search品种进行简单的搜索.例如,我想搜索名为"web.config"的所有文件,其中包含特定文本.我找不到任何方法,在线帮助完全没有帮助.如果我可以附加sdcreenshots,则在此处提供详细信息会更容易,但是我会通过语言尽力而为.
尽管我选择了始终仅搜索文件名",并禁用查找部分匹配"在搜索选项"中,我仍然得到一长串文件,这些文件的名称不是"web.config".扩展的搜索窗格不提供任何同时指定补充条件的方式,例如文件名,扩展名或要查找的表达式.我可以指定的唯一参数是文件名,无论如何它都不会被认真对待.选择全部",电子邮件",文档",图片",音乐"类别.和其他"屏幕顶部的可能对休闲计算机用户有所帮助,但对于服务操作员则无济于事.在XP下的Windows Search中,至少允许我退回到较早的愚蠢"页面.搜索表单,等待Windows搜索产生任何感兴趣的内容之后.如何访问此老式但更强大的功能:
a)在Windows 2008中
b),而无需首先使用Windows搜索

I have a test environment running Windows 2008, where I do not want to run the indexer for performance reasons.  I need to able to perform simple searches of the pre-Windows Search variety. For example, I would like to search for all files named "web.config", which contain a particular text.  I don't find any way of doing this, and the online help is completely unhelpful.  It would be easier to provide details here if I could attach sdcreenshots, but I will do my best verbally.
Despite the fact that I have selected "Always search for file names only" and disabled "Find partial matches" in Search Options, I still get a long list of files with names other than "web.config".  The expanded search pane doesn't provide any way of simultaneously specifying complementary criteria such as file name, extension or expression sought.  The only parameter I can specify is the file name, which (see above) is not taken seriously anyway.  The selection of the categories "All", "E-mail", "Document", "Picture", "Music" and "Other" at the top of the screen may be helpful to a casual computer user, but is not so for a serve operator.  In Windows Search under XP, I am at least permitted to regress to the earlier "stupid" search form, after waiting for Windows Search to produce nothing of interest.  How can I access this old-fashioned yet more powerful functionality:
a) in Windows 2008
b) without first having to use Windows Search

推荐答案

使用filename:foo仅搜索文件名中带有foo的文件.

有关高级查询语法(AQS)参考,请参见本页:http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx

Use filename:foo to search for files with foo in the filename only.

See this page for the advanced query syntax (AQS) reference: http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx


这篇关于如何使用Windows搜索按文件类型执行简单搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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