Question Locked

Windows utilities reliably search contents of unopened text files?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Are there free utilities that will search contents of text files while the files are not opened. Text files include html files, php files, C or the like. I have found that searching these files reliably I need to have them opened in an editor and search has to be done from the editor.

The built-in search facilities in Windows XP or Vista do not appear reliable to me. It can't find files that I know do have the string of characters in them. I never know which part of string it can find.

By the way how can we start Windows Vista search in advanced mode or with contents search every time we want. I can't see the advanced option until the search fails. Perhaps I have missed something here.

3 replies

by monice

You can use findstr command and pipe it out to a text file.

For example at the root of where I want to search I use the following:

findstr /sin "searchstring" *.* >c:\findstr.txt

This searches the current directory and all directories for any file that contains the string "searchstring" and lists the results in a text file named findstr.txt in the root of C:\

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx?mfr=true

Hope this helps.

Monice

This discussion is closed to new replies.