My work computer does not allow the cd command
Search a subset of text string within text file of bunch of text files in file folder
Search a subset of text string within a text file or a bunch of text files in a file folder. For example, I have 100 files and looking for 13453 text within a file, but it will be a string of 202505212025052213453 as there is a timestamp of when a system receives and processes a file.
Windows for home | Windows 10 | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
16 answers
Sort by: Most helpful
-
Anonymous
2025-05-23T17:15:58+00:00 -
Anonymous
2025-05-23T17:04:17+00:00 Open a command-line prompt, via the "CMD.EXE" utility app.
Use the "CD" to navigate to the folder that contains all the files.
Are you searching for "13453" followed by a "blank" ?
If so, type FIND "13453 " *TXT > results.txt
and press Enter
When the search finishes, type results.txt
and press Enter
This should open the NOTEPAD app, and will name the files that were scanned, plus showing the line in each file that contains "13453" that is also followed by one "blank".
-
Anonymous
2025-05-23T16:28:36+00:00 How do I make a folder indexable?
-
DaveM121 869.7K Reputation points Independent Advisor2025-05-23T16:20:00+00:00 I created a new text file added that text, but was unable to get search in Windows to find that sub-string, however, that may be because that file has not been added to the index yet.
Did you check if that folder had been added to the Windows search index and that file contents is enabled in the search index?
-
Anonymous
2025-05-23T15:56:09+00:00 I tried I could get a whole "string" match but not subset of numbers. I have search for content enabled.
Trying to search for
17371315
Sample data from the file.
HLOBARIBA 117076BABD20250522202505266801617901 25052266646075110
HLOBARIBA 530438BABF20250522202505276801617905 25052266647075110
HLOBARIBA 531321BABF20250522202505266801617902 25052266646075110
HLOBARIBA 117071BABH20250522202505226801617906 25052266647075110
HLONGOS 488895BABH202505222025052317371315 25052266646075110
HLOBARIBA 280003BABR20250522202505266801617904 25052266647075110