Searching for text in files

G

Guest

I followed the advice in MS article 309173, about searching for words and
phrases in files.

After mofifying the registy entries for .XML, .CLASS, and .JAR files, I can
now find text in these files.

I still cannot find text in .PROPERTIES files, which are simple text files
like the other files that I modified.

Can anyone advise? Are there too many characters in PROPERTIES? :)

Regards,
Alan
 
G

Guest

Hi Wes,

Before my first post, I had tried the PersistentHandler method. It worked
for any file except .PROPERTIES

I tried the VbScript tool, and it informed me that my registry entry was
correct :)

Finally, I tried the AgentRansack tool. It's great! Far better than the
Windows native search tool :)

(I wouldn't mind knowing why PersistentHandler didn't work!)

Thanks for your help.

Regards,
Alan
 
R

Ramesh, MS-MVP

Until Wes returns:

Alan,

The .Properties seems to be a reserved Windows file extension. To workaround
the problem, set the "FilterFilesWithUnknownExtensions" Value data to 1 in
the following registry key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex]

Logoff and then login back.


More information:

From http://support.microsoft.com/?kbid=309173
Method 2
To configure Windows XP to search all files no matter what the file type,
obtain the latest service pack for Windows XP and then turn on the Index
file types with unknown extensions option.

If you use this method, Windows XP searches all file types for the text that
you specify. This can affect the performance of the search functionality. To
do this: 1. Click Start, and then click Search (or point to Search, and then
click For Files or Folders).
2. Click Change preferences, and then click With Indexing Service (for
faster local searches).
3. Click Change Indexing Service Settings (Advanced). Note that you do
not have to turn on the Index service.
4. On the toolbar, click Show/Hide Console Tree.
5. In the left pane, right-click Indexing Service on Local Machine,
and then click Properties.
6. On the Generation tab, click to select the Index files with unknown
extensions check box, and then click OK.
7. Close the Indexing Service console.
Warning Serious problems might occur if you modify the registry incorrectly
by using Registry Editor or by using another method. These problems might
require that you reinstall your operating system. Microsoft cannot guarantee
that these problems can be solved. Modify the registry at your own risk.
Network administrators can configure this setting by modifying the registry.
To do this, set the FilterFilesWithUnknownExtensions DWORD value to 1 in the
following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi Wes,

Before my first post, I had tried the PersistentHandler method. It worked
for any file except .PROPERTIES

I tried the VbScript tool, and it informed me that my registry entry was
correct :)

Finally, I tried the AgentRansack tool. It's great! Far better than the
Windows native search tool :)

(I wouldn't mind knowing why PersistentHandler didn't work!)

Thanks for your help.

Regards,
Alan
 
W

Wesley Vogel

Until Wes returns:

Or even if he does return. ;-)

Speaking of which, I am going to Phoenix, AZ for a month. What an idiot,
Phoenix in June. I think I'll have my head examined.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
Until Wes returns:

Alan,

The .Properties seems to be a reserved Windows file extension. To
workaround the problem, set the "FilterFilesWithUnknownExtensions" Value
data to 1 in the following registry key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex]

Logoff and then login back.


More information:

From http://support.microsoft.com/?kbid=309173
Method 2
To configure Windows XP to search all files no matter what the file type,
obtain the latest service pack for Windows XP and then turn on the Index
file types with unknown extensions option.

If you use this method, Windows XP searches all file types for the text
that you specify. This can affect the performance of the search
functionality. To do this: 1. Click Start, and then click Search (or
point to Search, and then click For Files or Folders).
2. Click Change preferences, and then click With Indexing Service
(for faster local searches).
3. Click Change Indexing Service Settings (Advanced). Note that you
do not have to turn on the Index service.
4. On the toolbar, click Show/Hide Console Tree.
5. In the left pane, right-click Indexing Service on Local Machine,
and then click Properties.
6. On the Generation tab, click to select the Index files with
unknown extensions check box, and then click OK.
7. Close the Indexing Service console.
Warning Serious problems might occur if you modify the registry
incorrectly by using Registry Editor or by using another method. These
problems might require that you reinstall your operating system.
Microsoft cannot guarantee that these problems can be solved. Modify the
registry at your own risk. Network administrators can configure this
setting by modifying the registry. To do this, set the
FilterFilesWithUnknownExtensions DWORD value to 1 in the following
registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi Wes,

Before my first post, I had tried the PersistentHandler method. It worked
for any file except .PROPERTIES

I tried the VbScript tool, and it informed me that my registry entry was
correct :)

Finally, I tried the AgentRansack tool. It's great! Far better than the
Windows native search tool :)

(I wouldn't mind knowing why PersistentHandler didn't work!)

Thanks for your help.

Regards,
Alan

Wesley Vogel said:
Read this.

Windows® XP - Search Problems
http://www.dougknox.com/xp/tips/xp_bad_search.htm

Get this.

xp_persisthandler.vbs - Enable XP's "Search" to find text in files.
© Doug Knox - rev 2/5/2002
http://www.dougknox.com/xp/scripts_desc/xp_fix_search.htm

More information here.

Using the "A word or phrase in the file" search criterion may not work
http://support.microsoft.com/kb/309173

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
R

Ramesh, MS-MVP

I am going to Phoenix, AZ for a month.

Perhaps on a vacation, Wes?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Wesley Vogel said:
Until Wes returns:

Or even if he does return. ;-)

Speaking of which, I am going to Phoenix, AZ for a month. What an idiot,
Phoenix in June. I think I'll have my head examined.
 
W

Wesley Vogel

Hi Ramesh,

Nah, for work. Weekends too. But I can use the $$$$.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
Perhaps on a vacation, Wes?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Wesley Vogel said:
Until Wes returns:

Or even if he does return. ;-)

Speaking of which, I am going to Phoenix, AZ for a month. What an idiot,
Phoenix in June. I think I'll have my head examined.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User
 
R

Ramesh, MS-MVP

Now I must say, "you are a busy fella" :)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi Ramesh,

Nah, for work. Weekends too. But I can use the $$$$.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
Perhaps on a vacation, Wes?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
 
W

Wesley Vogel

Walked into that one didn't I? LOL What goes around, comes around.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
Now I must say, "you are a busy fella" :)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi Ramesh,

Nah, for work. Weekends too. But I can use the $$$$.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
I am going to Phoenix, AZ for a month.

Perhaps on a vacation, Wes?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top