Windows 10: Search multiple files for strings and output info

Discus and support Search multiple files for strings and output info in Windows 10 Software and Apps to solve the problem; Hi there. I'm in need of a batch file that will search through multiple files searching for multiple strings, and if it finds a match, will output the... Discussion in 'Windows 10 Software and Apps' started by Jake Masters1, May 23, 2025 at 4:32 PM.

  1. Search multiple files for strings and output info


    Hi there. I'm in need of a batch file that will search through multiple files searching for multiple strings, and if it finds a match, will output the entire line, as well as the filename of the file it was found in to another file.So for example, search *.txt in current and subdirectories, looking for multiple strings in "SearchForThese.txt" and if... for example, "Simon.txt" contains a line that reads "Hello Everyone" and the string "Hello" obtained from "SearchForThese.txt" was found, it would output "Hello Everyone was found in Simon.txt" to another file called "founditems.txt"Thank you

    :)
     
    Jake Masters1, May 23, 2025 at 4:32 PM
    #1
  2. user4589 Win User

    Multi String Search - Search Multiple Strings At Same Time!

    Hi guys,

    Just to share with you "Multi String Search", a portable tool that allows multiple strings to be searched at same time.

    Multi String Search (Web Page)


    Search multiple files for strings and output info [​IMG]
     
  3. Matt_316 Win User
    Searching Within Files

    I have tried searching within files in Windows 10 for a string. However, through testing, it seems that when the string being searched for does not have a space in front, it ignores it. E.g. if the text in the file is 'The quick brown fox' and I search
    for 'quick', it will list the file. But if the search string is 'ick', then the file will not be listed despite the text obviously being there. Any suggestions?

    Matt
     
  4. Tryx3 Win User

    Search multiple files for strings and output info

    Search string

    Use ~ [tilde] to denote an exact search

    • enclose the search term in "
    • include * if there is anything before the string / after it otherwise the search will think you are looking for a string at the start / end
    • include filename: if that is relevant [it speeds things up by avoiding contents searching].

    For example, these both found the correct result

    ~"*o p*"

    filename:~"*o p*"


    Search multiple files for strings and output info 5f4fd96b-c9a3-4938-a7da-e8b9dfd144ed.png


    Denis
     
Thema:

Search multiple files for strings and output info

Loading...
  1. Search multiple files for strings and output info - Similar Threads - Search multiple files

  2. Search multiple files for strings and output info

    in Windows 10 Gaming
    Search multiple files for strings and output info: Hi there. I'm in need of a batch file that will search through multiple files searching for multiple strings, and if it finds a match, will output the entire line, as well as the filename of the file it was found in to another file.So for example, search *.txt in current and...
  3. Search Filter String http://catalog.update.microsoft.com

    in Windows 10 Software and Apps
    Search Filter String http://catalog.update.microsoft.com: Can you tell me the search to filter out patch updates by last update date.I want to search patch by last update date. https://answers.microsoft.com/en-us/windows/forum/all/search-filter-string-httpcatalogupdatemicrosoftcom/f53e5e1a-d82e-4f92-a2ef-e073cd88c2ab
  4. What is the syntax of search strings in File Explorer's search box?

    in Windows 10 Network and Sharing
    What is the syntax of search strings in File Explorer's search box?: File Explorer has a search box in the upper right. If I type the string ~* then it doesn't just search for filenames starting with tilde. Somehow I found that I can type file:~"*~*" and it finds all filenames containing a tilde. But tomorrow I might want to search for...
  5. Wat is the syntax of search strings in File Explorer's search box?

    in Windows 10 Network and Sharing
    Wat is the syntax of search strings in File Explorer's search box?: File Explorer has a search box in the upper right. If I type the string ~* then it doesn't just search for filenames starting with tilde. Somehow I found that I can type file:~"*~*" and it finds all filenames containing a tilde. But tomorrow I might want to search for...
  6. Multi String Search - Search Multiple Strings At Same Time!

    in Windows 10 Software and Apps
    Multi String Search - Search Multiple Strings At Same Time!: Hi guys, Just to share with you "Multi String Search", a portable tool that allows multiple strings to be searched at same time. Multi String Search (Web Page) [img] 166155
  7. Multi String Replacer - Replace or Swap Multiple Strings At Once!

    in Windows 10 Software and Apps
    Multi String Replacer - Replace or Swap Multiple Strings At Once!: Hi guys, Just to share with you "Multi String Replacer", a portable tool that allows multiple strings to be replaced or swapped at same time! Multi String Replacer (Web Page) [img] 165801
  8. Search for Multiple Files in Folder

    in Windows 10 Network and Sharing
    Search for Multiple Files in Folder: Hello all, Would really really appreciate any help with this ! I'm trying to figure out how to search for multiple files all at once in a folder and have them listed out I tried putting OR after each file name and it only shows me the last file name in the search bar...
  9. Searching for duplicate text strings in File Explorer - Windows 10

    in Windows 10 Network and Sharing
    Searching for duplicate text strings in File Explorer - Windows 10: I've several external data drives with many, many files and directories. Many files are duplicated and I would like to eliminate the duplicates. The syntax for the duplicates is, for example: "file name n.docx" where n is a number, usually 1, 2 or 3. Using the community...
  10. searching for a specific string in File Explorer

    in Windows 10 Network and Sharing
    searching for a specific string in File Explorer: I used to have lots of MP3 files on my network drive that began with "01)." or "02)." etc. I have converted most of them to begin "01" or "02" etc. but now I would like to do a search or "01)." to find any I may have missed but when I search for that it gives me all...