如何使用Windows搜索在任何文件中搜索文本

Many of us rely on Windows Search to find files and launch programs, but searching for text within files is limited to specific file types by default. Here’s how you can expand your search to include other text-based files.

我们中的许多人都依赖Windows搜索来查找文件和启动程序,但是默认情况下,在文件中搜索文本仅限于特定的文件类型。 您可以通过以下方式扩大搜索范围,以包括其他基于文本的文件。

We have shown you some advanced search operators using Windows Search before and even how to change which files are indexed and how to rebuild your search index. But what about searching for text inside of .html, .php, .js, and other text-based web and scripting files? Windows search allows you to include other file extensions in its index with a few simple clicks.

我们已经向您展示了一些使用Windows Search的高级搜索运算符,甚至还介绍了如何更改被索引的文件以及如何重建搜索索引。 但是,如何在.html,.php,.js以及其他基于文本的Web和脚本文件中搜索文本呢? Windows搜索使您只需单击几下即可在索引中包括其他文件扩展名。

This technique works in Windows 10, 8, 7, or even Vista. The screens might look a little different, but it’s the same basic process on all versions.

此技术适用于Windows 10、8、7甚至Vista。 屏幕可能看起来有些不同,但是在所有版本上都是相同的基本过程。

Hit Start, type “index,” and then click the “Indexing Options” result.

单击开始,键入“索引”,然后单击“索引选项”结果。

In the “Indexing Options” window, click the “Advanced” button.

在“索引选项”窗口中,单击“高级”按钮。

In the “Advanced Options” window, switch to the “File Types” tab. Select the extension for the file type you would like to include in content searches, and then select the “Index Properties and File Contents” option under the list. The text in the “Filter Description” column should change to reflect whatever filter is used to open that file type by default. In our example, we’re selecting the BAT extension, so the filter type changes to “Plain Text Filter.”

在“高级选项”窗口中,切换到“文件类型”选项卡。 选择要包含在内容搜索中的文件类型的扩展名,然后在列表下方选择“索引属性和文件内容”选项。 默认情况下,“过滤器说明”列中的文本应更改以反映用于打开该文件类型的任何过滤器。 在我们的示例中,我们选择了BAT扩展名,因此过滤器类型更改为“纯文本过滤器”。

If you don’t find file type you’re looking for on the list, it means no app is set as the default handler for that file type. To add the file type, type the extension in the “Add New Extension to List” box and then click the “Add” button. By default, Windows Search will use a plain text filter to search the contents of those types of files, since another app is not associated.

如果在列表中找不到要查找的文件类型,则意味着没有应用设置为该文件类型的默认处理程序。 要添加文件类型,请在“将新扩展名添加到列表”框中键入扩展名,然后单击“添加”按钮。 默认情况下,Windows Search将使用纯文本过滤器来搜索这些类型的文件的内容,因为另一个应用程序未关联。

After the index is rebuilt, searching for text inside one of the new file types should now show results.

重建索引后,在一种新文件类型中搜索文本现在应该显示结果。

If you’d like to always search within file contents for a specific folder, navigate to that folder in File Explorer and open the “Folder and Search Options.”

如果您想始终在文件内容中搜索特定文件夹,请在文件资源管理器中导航至该文件夹,然后打开“文件夹和搜索选项”。

On the “Search” tab, select the “Always search file names and contents” option.

在“搜索”选项卡上,选择“始终搜索文件名和内容”选项。

After the index rebuilds, searches in that folder will automatically include file contents.

重建索引后,在该文件夹中的搜索将自动包括文件内容。

翻译自: https://www.howtogeek.com/99406/how-to-search-for-text-inside-of-any-file-using-windows-search/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279084.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php算法求出兔子数列,PHP算法:斐波那契数列的N种算法

前言前段时间,遇到优化计算斐波那契数列的常规递归方法,但是一时间并没有及时想到很好的方法,所以后面查找了相关资料,总结了多种计算解法,所以分享出来,和大家一起交流学习。斐波那契数是什么斐波那契数列…

.net core MongoDB 初试

是这样的&#xff0c;我们有一个场景&#xff0c;另一个服务器是写到MongoDB里面&#xff0c;我们的MVC页面要展示&#xff0c;需要分页展示 自己写了一个DAL public class MongoConnect{public string ConnectString { get; set; }}public class MongoBaseDAL<TEntity>{…

Linux文件和目录权限:chmod、更改所有者和所属组:chown,umask命令,隐藏权限:lsattr/chattr...

文件和目录权限chmod&#xff1a; 我们使用ls -l可以看到文件的详细信息&#xff0c;也知道第一列的第一个符号(字母)表示文件的类型&#xff0c;在表示文件的类型符号的后面的九个符号则表示的是文件的权限&#xff0c;这些权限和文件的所有者和所属组都有关系&#xff1a; 文…

【技术累积】【点】【java】【27】@JSONField

JSONField 该注解隶属于阿里fastjson&#xff0c;方便fastjson处理对象时的一些操作 源码 Retention(RetentionPolicy.RUNTIME) Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER }) public interface JSONField {/*** config encode/decode ordinal* s…

百度php editor图片上传到其他盘,百度编辑器Editor图片独立上传

将百度编辑器中的图片独立出来上传&#xff1a;html:代码var myEditorImage,d,myEditorImage new UE.ui.Editor();myEditorImage.render(uploadid);myEditorImage.ready(function(){myEditorImage.setDisabled();myEditorImage.hide();//隐藏UE框体myEditorImage.addListener(…

感谢支持,超预期重印并加码

今天&#xff0c;要向广大读者朋友带来一个&#xff0c;连我自己和出版社都感到十分意外的好消息&#xff0c;几天前接到出版社的通知&#xff0c;说今年元月出版的《Cisco/H3C交换机配置与管理完全手册》&#xff08;第二版&#xff09;马上就要下单重印了&#xff0c;而且一下…

如何从手机远程控制uTorrent

You’re a geek on the go and it’s important to keep tabs on your torrents when you’re away from home. Today we take a peak at how you can monitor, manage, and even start your torrent downloads when you’re away from your computer. 您是旅途中的怪胎&#x…

洛谷P2463 Sandy的卡片【后缀数组】【二分】

题目描述 Sandy和Sue的热衷于收集干脆面中的卡片。 然而&#xff0c;Sue收集卡片是因为卡片上漂亮的人物形象&#xff0c;而Sandy则是为了积攒卡片兑换超炫的人物模型。 每一张卡片都由一些数字进行标记&#xff0c;第i张卡片的序列长度为Mi&#xff0c;要想兑换人物模型&#…

php获取一个文件名的函数,PHP 文件系统函数之获取文件名及文件名后缀-php文件...

获取文件名(包含扩展):1.用PHP 文件函数 basename获取例&#xff1a;$filename "/home/httpd/html/index.php";$file basename($filename);2.先获取位置再获取文件名例:$filename "/home/httpd/html/index.php";$pos strrpos($filename, /);if ($pos …

tasker使用手册_如何开始使用Tasker调整Android手机

tasker使用手册Tasker is a powerful app for Android that lets you customize how your phone works and automate tasks. Unfortunately, it’s got a bit of a learning curve. We’re here to show you how to get started and turn your phone into a flashlight in the …

iPhone 软件:xlate free 编码的好帮手!

功能菜单&#xff1a; 1 文本 2 二进制 3 Char 值 4 Base64 5 反向 如果需要把一段中文编码请选择UTF16&#xff0c;如果是英文就选择UTF8。对于需要经常使用编码切换的朋友是个好帮手。 也可以用来简单加密&#xff1a;我们先在文本状态下输入一段不想让别人知道或需要保密的文…

linkbox php,win10 docker-toolsbox 搭建php开发环境的教程

下载镜像docker pull mysql:5.7docker pull php:7.2-fpmdocker pull nginxdocker pull redis:3.2设置共享文件宿主机创建目录E:\wnmp\mysql57\confE:\wnmp\mysql57\logE:\wnmp\php72\confE:\wnmp\php72\confE:\wnmp\nginx\confE:\wnmp\nginx\confE:\wnmp\wwwvmware设置文件共享…

sublime text3:提示 There are no packages available installation 解决方案

纯属记录&#xff0c;下次能找到解决。 第一步&#xff1a; 在sublime Text3界面按 ctrl 出现一个输入框界面 第二步&#xff1a;在输入框输入&#xff1a; import urllib.request,os,hashlib; h eb2297e1a458f27d836c04bb0cbaf282 d0e7a3098092775ccb37ca9d6b2e4b7d; pf Pa…

如何提取幻灯片表格_如何查看对Google文档,表格或幻灯片文件的最新更改

如何提取幻灯片表格The Google Suite offers you a handy way to view all the changes that have occurred in a file on Google Docs, Sheets, or Slides. This is extremely useful when you’ve made lots of changes to a file or are working as part of a team and need…

[20171130]关于rman的一些总结.txt

[20171130]关于rman的一些总结.txt --//最近一直做rman相关测试,测试那个乱,没办法.无法从周围的人获得帮助,纯粹是自己的乱猜,乱测,不知道别人是否能看懂我写的东西. --//有必要做一些总结,不一定对,仅仅是我当前的看法. 1.数据文件备份集中,文件头是最后写到备份集文件的. 2.…

支付宝红包php,支付宝红包赏金跳转源码,一键复制红包码,裂变推广

[html]代码库支付宝到店红包搜索码跳转推广裂变-引流*{padding:0;margin:0;}.main{overflow: hidden;}a {color:black;}.main img{width:100%;outline-width:0px;vertical-align:top;}.main{position: relative;}.main .copy-container{width: 100%;height: 0.42rem;position: …

apt-get更新软件包_如何使用Apt-fast加速软件包下载和更新

apt-get更新软件包By Default, Ubuntu uses apt-get to install packages and updates. Apt-get is a good tool but you can get much faster download speeds using Apt-Fast when downloading and updating your Ubuntu box. 默认情况下&#xff0c;Ubuntu使用apt-get安装软…

FallbackFactory启动的时候抛出异常

在Hystrix做熔断的时候&#xff0c;开始用的是FallBack&#xff0c;后来为了找出为啥exception&#xff0c;然后就用了FallBackFactory。但是奇怪的是&#xff0c;一起动就抛出异常&#xff0c;真的是百思不得骑姐&#xff0c;错了其解。后来在github上找到了解答&#xff1a;h…

制作首页的显示列表

1. 在首页添加显示问答的列表&#xff0c;并定义好相应的样式。 无序列表 <ul > <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> {% block body %}<div class"container"><div class"row clearfi…

php xxtea加密,php - esp32和php XXTEA字符串加密 - SO中文参考 - www.soinside.com

输入具有不同的数据类型可能会导致此问题&#xff0c;因为当前没有任何类型或范围检查的XXTEA实现。或者它可能是由于所涉及的两台计算机的不同端序行为&#xff0c;因为二进制文件通常存储为由字节构造的字数组。或者可能是由于缺少正式加密特定字符串和密钥的官方或标准参考示…