How do I search for a keyword in all the text files from a folder? I am using Vista.
|
In addition to the answers on this question,
|
|||
|
|
|
Even better: Microsoft or Google Desktop Search (Free Software by M$ and Google). They are able to index all sort of files (even pdf, doc, xls and that like). So you can query the index instead of time-wasting searching with the con of having/building a large index and updating it. |
|||
|
|
|
To search files by file contents you must first enable it, since by default it's only enabled in indexed locations:
To search:
This will search for word keyword in all file names and contents in txt files. Keyword must be a separate word. To also include cases where keyword is part of a word (either in contents or file name) use wildcards like this
|
|||
|
|
|
The findstr may be extremely helpful, but the most powerful tool you're looking for here may be grep. |
|||
|
|