Category Archives: More

More about Desktop Search and Full-Text Search

How To Use FINDSTR Command In Windows 11? Part 1

You may have placed some files in your Windows 11, but you have forgotten their names now. Don’t worry, the findstr command will help you‌. It’s a built-in tool in every Windows but mostly under-used and underrated because of less knowledge for findstr command .

This article will help you learn step-by-step use of the findstr command. To search a file in manual research can be frustrating and time-consuming. The findstr command line can search files by content for you in windows 11. This command will be excellent for you if you know how to use it correctly. To use the findstr command in Windows 11.  You need to go a couple of steps;

Open The Command Prompt

The first step to use the findstr command is to pop up the command prompt.

Step 1 You need to click on the file explorer.

Step 2 As soon as the explorer window throws up, enter “cmd” on the search bar. The window of command prompt will be open before you.

Figure 1 search cmd in the search bar

Figure 1 search cmd in the search bar

Step 3 you need to use right-click on the respective window through your mouse and choose the run option as administrator. Windows command is ready for the findstr command line.

Open command prompt

Open command prompt

Findstr Command Help

C:\Users\Administrator>findstr /?
Searches for strings in files.

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]
[/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]
strings [[drive:][path]filename[ ...]]

/B Matches pattern if at the beginning of a line.
/E Matches pattern if at the end of a line.
/L Uses search strings literally.
/R Uses search strings as regular expressions.
/S Searches for matching files in the current directory and all
/I Specifies that the search is not to be case-sensitive.
/X Prints lines that match exactly.
/V Prints only lines that do not contain a match.
/N Prints the line number before each line that matches.
/M Prints only the filename if a file contains a match.
/O Prints character offset before each matching line.
/P Skip files with non-printable characters.
/OFF[LINE] Do not skip files with offline attribute set.
/A:attr Specifies color attribute with two hex digits. See "color /?"
/F:file Reads file list from the specified file(/ stands for console).
/C:string Uses specified string as a literal search string.
/G:file Gets search strings from the specified file(/ stands for console).
/D:dir Search a semicolon delimited list of directories
strings Text to be searched for.
Specifies a file or files to search.

Use spaces to separate multiple search strings unless the argument is prefixed
with /C. For example, 'FINDSTR "hello there" x.y' searches for "hello" or
"there" in file x.y. 'FINDSTR /C:"hello there" x.y' searches for
"hello there" in file x.y.

Find The Location Of The Content

Step 1 For content search, you need to type findstr syntax on the command prompt.

Step 2 The next step is to add /s if you want to search in sub-folders.

Step 3 Further step, you will enter the text of the respective file.

Step 4 Now, you will add “.” if you want to search in many files, whether pdf or text file type or any file, throughout the computer data. If you want to search only in the text file, you will write. Text and press enter.

findstr /s mushroom"."


findstr /s mushroom .text

The window prompt will show you the location of the respective file.

Search file by content under the document

For searching a specific file, you need to use syntax to type the command line for search. For example, you need to find document “occurrence. text” under the documents of the folder along with the word “window 11,” then entering the findstr command will be like:

findstr /c:/documents/ “window 11” occurrence.text

Now for any file search in the d folder for the word computer, you will type findstr syntax on the command prompt.

findstr "computer" d:\ documents\. ""

Search For Words Ending With Specific Texts

Suppose you want to search all the words ending with “ABC” in every type of file under D:/ Documents/ including all the sub-folders, the findstr command will look like;

findstr / R /S [a-z]* ABC d:\ documents\* .txt

Here, /S is a syntax for searching all the folders and sub-folders under document D.

/R says for search content strings while * presents a string search in all the folders present on the computer.

Process string for all the words end wither. Here, findstr string in the folder text3 will look.

 findstr /r [ a-z]* er test3. txt

Text Search In The File By Findstr Command

findstr made finding content in the file or maybe even files easier. A better understanding of the findstr command-line tool will provide you with the required word document in seconds.

Suppose you look for documents with specific words in your windows 11 and forget about the file name. For example, your word is a dictionary in a specific file y.z. Here, your findstr syntax will be:

findstr dictionary y.z

To Find Files In A Specific Location

To find text in a specific document word to be searched will come in inverted commas for folders and sub-folder search. /c findstr will help find the specific word “dictionary.”

By considering the above example, the findstr command line will be like:

findstr /c:" dictionary" y.z

For Text Occurrence Search

Occurrence of the word means that you want in a specific case like Dictionary where D is capital in the file tor. text, enter the findstr standard line like

findstr Dictionary Tor. text

Search Text Irrespective Of Case

Search for text without the specification of case types, whether capital or small, the findstr command that you will enter

findstr /s /i Dictionary “.”

In this syntax typing, /s uses folders and sub-folder search while I/ give the command to ignore the case “D,” whether capital or small.

Search Text With Different Specifications

Suppose you are looking for a text at the start of the line. You want this word along with multiple spaces and with the line number. Here, the syntax of the findstr command in window 11 will be.

findstr /b /n /r /c : ^ *too  *. bas

Here, /b symbolizes displaying a word too if it’s at the start of a line and /n for the number line display in which the word is present. /r means text search processing. Last, /c made the search text exact.

Search Multiple Texts In Multiple Folders

If you want to search for over one text in multiple folders with specific search criteria in stringlist.txt and files research in the file list, you want to see the results in the file results.out. The following findstr syntax will help you.

findstr / g: stringlist. txt  / f: filelist. txt > results.out

Here /g uses to search specific content from the listed file, /f uses for a specific file search from listed files while > shows the content display position and results. Out is the point where content needs to be displayed.


Looking for a file that contains the word thewidedictionary, findstr syntax in window 11 will be like.

findstr /s /i /m \ <thewidedictionary\>  *.*

Here, /s uses current folders and subfolders for string search and /I to overlook the case type. /n is used to search specific file names in which the text is present.

If you want to search for the words that begin with the and others containing the vast dictionary, then findstr syntax will be

findstr /s /i /m \<the . *  *. *

Here * uses for occurrence, /s for exact string processes. /I ignore the case type /m used for specific filename displays.

String Search For An Exact Match

findstr /s "computer help" *. Txt

Here, /s uses for the search in current folders and sub-folders while * shows the accuracy of words from zero or more in the string line.Another example for exact text match will be

findstr /x  /c: “computer work” *.txt

For the exact string display on the window prompt, you can use / x. In this case, you will not see “computer works” or other unmatched files on the window prompt. / x must be a line, which means that there should be nothing other than “computer work” in the line to match the exact results. Similarly, * uses for the accuracy of computer work word in the files.

For example, you need to find the word “computer work” in the file named myfile So, the findstr command that you will enter in the window prompt will be like

findstr “computer work” myfile.txt

It’s that easy to find string through your files.

String Search In Folder

Proceeding the above example, you can make changes in the findstr syntax to add the specification of folders. It means that findstr will show results by finding the content and the file name that possesses the content. The findstr command line on window 11 will be like

 findstr /s “computer work” * .txt

Here, /s shows the results from current data and sub-folders of the computer, while * shows the exact place of computer work in files. You can also observe that the above findstr command does not mention the filename. It means findstr will search the required word through all directories on the computer. Txt symbol shows the files with text. It means that the findstr command will search strings from all the text files on window 11.

For the word aaa, the findstre command in Windows 11 will be

findstr command search for a string in window 11

findstr command search for a string in window 11

String Search For Number Lines

The findstr syntax on the command prompt will look like

findstr /n /i /c: “computer work” *

Here, /n presents the line numbers before each line matches the required string. /I show that the search is not case-sensitive. When you press after entering this findstr command on the window prompt, search results will show you the lines before the word computer work.


You can use the findstr command in any command-line interpreter if you understand every meta character, parameter, and functionality through the ways mentioned earlier. It will help you ‌grip on findstr command usage.

Through the findstr tool, you can easily do a successful file search in window 11. The most significant advantage of the findstr command is it’s a built-in tool. You don’t need to get a unique tool to search files by content in the computer directories. It’s a quick, handy way to search the content.

How to Search a File by Content in Windows 11 ? Free way

Description: Learn how to search the content of files in Windows 11.  Windows 11 includes a built-in search feature that helps you find files, documents, and apps quickly. You can search a file by content and by its name on your computer and use keywords to search on the web using the search feature in Windows 11. In addition, you can manage search options to control what a search feature can find and how a search works in Windows 11.

There are not any noticeable changes to the overall working of Windows search in Windows 11 compared to Windows 10. However, it comes with many improvements to the search feature, such as dedicated file type search, search a file by content, support for cloud search in conjunction with cloud storage services, indexing options, faster and efficient results.

Continue reading to learn about different ways to search files in Windows 11. Additionally, you will learn how to find files by their type and content/text.

How to search for files in Windows 11?

Following are some ways that you can use different options to search a file in Windows 11.

Keyboard shortcut

Press Windows+S on your keyboard to quickly search for files, apps, or on the web in Windows 11. A window will pop up, then start typing, and you will get the results listed below. You can even narrow down your results by category by clicking on the headings below the search bar, such as apps, documents, web, or more.

Search button on the Taskbar.

Click on the Search Icon (which looks like a magnifying glass) on the taskbar to open the Search Menu in Windows 11. It is the same menu as you get when you press Windows+S. But if you do not have a Search Icon on your Taskbar, you can add it. For this, open Settings and go to Personalization. Click on the Taskbar, then Taskbar Items, and turn ON the switch beside Search.

Click Start and type your search.

Click the Start button on the Taskbar, the Start Menu will appear. Then start typing, and the menu will turn into the Windows Search Menu, and you can search the same as the last two methods.

Search in File Explorer.

Another way to search files is within File Explorer. Open File Explorer by clicking on the folder icon on your desktop/taskbar or pressing Windows+E. Navigate to the folder you want to search. Then in the upper right corner of the window, click on the Search Bar and type your search query. You will get every matching result for files.

How to add file extensions to Windows Search Index?

You can find files using the search feature in Windows 11. However, you can search for text in a file for limited file types by default. But you can include other text-based files to expand your searching options in Windows 11.

  1. Press on the Search Icon in the Taskbar to open a Windows Search window.
  2. Type index and open the Indexing Options from results.
  3. Once the Indexing Options window opens, press the Advanced button.
  4. In the Advanced Options, press on the File Types tab. Mark the extensions for the file type that you want to include in your content searches. Then select the Option Index Properties and File Contents under the list to see the filter in the filter description that will be used to open a specific file type. For example, when you choose the bat extension, the plain text filter will be the filter type.
  5. However, if you do not have your required file type in the list, it means that the file type does not have an app as the default handler. You can add your new file type by typing the extension in the box under Add New Extension to list and then press Add. Because Windows Search does not have another app associated with those types of files, it will use a plain text filter to search their contents by default.

To search for a specific file extension/type.

Follow the given steps to search for a file by its extension/type.

  1. Open File Explorer by clicking on the folder icon on your desktop/taskbar or pressing Windows+E.
  2. Navigate to the folder you want to search. Then in the upper right corner of the window, click on the Search Bar and type the extension of the file you intend to search.
  3. You will get files matching your extension.

How to enable searching a file by content/text using Windows Search in Windows 11?

Use the following steps to enable searching a file by content/text using Windows Search in Windows 11.

  1. Click on Start, and open the Control Panel from the Start Menu.
  2. Once the Control Panel window opens, click on Folder Options.
  3. In the Folder Options window, click on the Search tab.
  4. Then under the What to Search option, select the Always Search File Names and Contents and press OK. It will enable searching a file by its name and content in Windows 11.

How to search a file by content/text using Windows Search in Windows 11?

Using Windows Search in Windows 11, you can search a file by content/text by following the steps below.

  1. Open File Explorer by clicking on the folder icon on your desktop/taskbar or pressing Windows+E.
  2. Navigate to the folder you want to search. Then in the upper right corner of the window, click on the Search Bar and type the string: content: “your phrase/text/content”. Window 11 will recognize this as a specific instruction, and the text color will change to light blue.
  3. You will get files matching your text. For example, if you type .pdf in the search box to find all the files with the pdf extension.


To conclude, one can say that the search feature in Windows 11 makes the process of searching files and documents convenient and quick. You can find a file by its name, type, date, size, and even by its content using Windows Search in Windows 11.

Manage Indexing Options and Settings for Windows 11 – A Tutorial

How To Find File Content in Windows ?

When you’re a PC user, using windows search is second nature after a while. You can set index options to accurately find any document, picture or music file you need, which windows search usually finds.

What many people want to know is whether it is possible for windows search to find documents through their contents. If you need windows search to find file content, such as text in cpp, java, HTML, and a large number of other text-based files, you need to add a file extension to the windows search options. Continue reading

Elasticsearch tutorial: quick start examples for newbie

1.1 Basic concepts

Elasticsearch is also a full-text search library based on Lucene, which essentially stores data. Many concepts are similar to MySQL.

Comparison relationship:

  • Indexes (indices) ——————————– Databases database
  • Type (type) —————————– Table data table
  • Document (Document) —————- Row row
  • Field (Field) —————– Columns column

Continue reading

How to Find Word & Excel & PPT Documents by Contents on Your PC

Word, Excel and PPT are part of the Microsoft Office production suite. If your small business has been using Office for some time, you may have hundreds or thousands of Word and Excel and PPT files on your computer. If you limit yourself to browsing all folders, finding the folder you want can be a tedious task. If you try to find Word and Excel files at the same time, this task will become more difficult.

search ‘Documents’ in all PHP files on a PC

Continue reading

Comparison of full text search engine – Lucene vs Sphinx vs Solr vs ElasticSearch


  1. Solr and Sphinx can meet all your requirements. They are fast and aim to efficiently index and search large amounts of data.
  2. Both have a list of high-traffic sites that use them (Solr, Sphinx)
  3. Both provide commercial support. (Solr, Sphinx)
  4. Both provide client API bindings for multiple platforms / languages ​​(Sphinx, Solr)
  5. Both can be distributed to increase speed and capacity (Sphinx, Solr)

Continue reading

Search local file by content, How ?

Anytxt Search is a tool that can search out any text you want to find in 1 second. Yes, just in 1 second, just like local Google Search Engine. It’s free, why do not try it not ?

fast search text  in file on PC
eg: search “Windows software”, it returns search result in just 0.4 sec.


Continue reading

Benefits of Desktop Full Text Search Engine

  • Massive data-friendly: Anytxt can index and scan an unlimited number of files in all popular formats, and can reliably find information immediately when needed.
  • Extensive document format: Plain Text Format (txt, cpp, html, etc.),Microsoft Outlook (eml),Microsoft Word (doc, docx),Microsoft Excel (xls, xlsx),Microsoft PowerPoint (ppt, pptx),Portable Document Format (pdf) (beta),eBook (mobi, epub, etc.) is coming
  • Highlight feature: Because the color of the search term is highlighted, you can see at a glance which results are relevant. This is how Anytxt looks at work.

Continue reading

How to Search for Words in Excel Files On PC?

If you want to find an Excel, but do not know the directory it is stored in, just vaguely remember some words in this Excel. So how do you find this file? The method is simple. Anytxt can find anything you want within 1 second.

Anytxt, Google Desktop Search, Full text search engine. Search Excel Content.
Anytxt Desktop search Full text search engine

Continue reading