Hi rayf1967,
I was back tonight, saw your post and tried a search in my .xlsx and .xls files. They results were not as I suspected. But is does work now.
I had left the "Allow files on this drive to have contents indexed in addition to file properties" unchecked. This meant that my old index was being searched but new files or edits were not included. When I finally went to the properties and allowed indexing for the disk I was able to search both .xls and .xlsx files for text both inside cells and inside text boxes. I have edited my last post to include this observation.
Window 7 File & Directory Search Success
yahoo! I have finally been able to successfully search a text file for a string. Thank you Lisa and Thahaseena I studied the links and then made some tests over a 5 hour period. FYI, I have been getting by using the old DOS commands in .bat files. Understanding the new search engine was much harder than learning RegEx in the 80's.
- BEWARE: The disk property box known as:
"Allow files on this drive to have contents indexed in addition to file properties"
That check box controls the updating of the index database. It must be checked to build or update an index that may be searched.
You may select the whole disk or just a subset of folders.
For disks:
rt-click folder / properties
For folders:
rt-click folder / properties / General tab / Advanced
I successully searched for file names and inside files with that box NOT checked but the results did not include files created or edited since the last time the index was built or in other words since the indexing was allowed.
- Searching in files was N O T the default setting after my W7 installation. My system keeps all the files on a non system disk and that disk was not included in the search index settings. Not MS's fault.
- Searching in files REQUIRES that the disk/directories be specified:
Set the locations:
Control Panel/Indexing Options/Modify/ - go down and check any disk or dirs you want indexed.
Set the file types you want to allow searching inside:
control panel/indexing options/Advanced Options/File Types/Index Properties and File Contents - set as desired
The file types are grouped and there are filter categories they fall into.
Setting the .txt (Plain Text Filter) to "Index Properties and File Contents" will allow many other file types to be indexed. The same is true for .doc (Microsoft Office Filter); that one will allow indexing for all Office files.
My 3GHz/4GB quad core indexed at 2500 items per second. I let it run at night on my files disk as I estimated 3 hours to finish.
- Read about "Windows Search Advanced Query Syntax" it may help you a lot.
- W7 will post what looks like an error/complaint when you search suggesting you change your index settings. This will happen even if you have set them so ignore/disable it.
E x a m p l e s (all text left of - was typed/pasted into search box):
- test after:07/20/10 - this found all the file names with the string "test" in them with Date modified values greater than 07/20/10.
- *test*.txt after:07/30/10 - this found only the files of type .txt with "test" in the name and modifed today (07/30/10).
- *.txt contents: citabria after:07/20/10 - searched for the word citabria inside the text files modified after 07/20/10!
- *.docx contents: citabria after:07/20/10 - searched for the word citabria inside of the Word files modified after 07/20/10!
- *.xlsx contents: fardap - searched for the word fardap inside of all my .xlsx files; found in cells and text box.