Windows Search unable to find word or phrase in ASP code

J

Joel

I am unable to do a word or phrase search on ASP files
when the specific word I'm searching for is contained
within ASP. If I rename the .ASP file to .TXT, the
search works fine. Also, if I have the word in a segment
of HTML code(not inside ASP) even if the file is .ASP,
the search works.
This problem is on WindowsXP Professional. I do not have
the same problem on WindowsNT SP6a.
Is this some type of security feature? Can I get around
it?

Thank you.
 
H

Hilary Karp

The search feature in XP doesn't work well. Try Agent Ransaack. It's
free and it is supposed to work very well.
 
A

Alex Nichol

Joel said:
I am unable to do a word or phrase search on ASP files
when the specific word I'm searching for is contained
within ASP. If I rename the .ASP file to .TXT, the
search works fine. Also, if I have the word in a segment
of HTML code(not inside ASP) even if the file is .ASP,
the search works.

It only searches for text in a very limited number of types - they must
either have registry entries saying they are pure Text (.TXT and not
much else) or have known 'filters' to handle embedded format controls,
so that Search can avoid being confused by thinking those are characters
in 16 bit Unicode (eg .doc, .htm). You can add an additional type as
pure text provided you know that it *is* that, and that it does not
already have a 'PersistentHandler' in the registry.

An ASP file *ought* to be picking up the persistent handler for HTML.
To make sure that it is ( Make the following, after - - start and before
- - end into a file by cut/paste to NotePad. Make sure there is a blank
line at the end. Save as "Patch.reg" then d-click on this file to enter
it into the registry.

I can't guarantee it as a cure, but I would not suggest registering it
as a pure text file, and damaging this relation)

- - start
REGEDIT4

[HKEY_CLASSES_ROOT\.asp]
@="aspfile"

[HKEY_CLASSES_ROOT\.asp\aspfile]

[HKEY_CLASSES_ROOT\.asp\aspfile\ShellNew]

[HKEY_CLASSES_ROOT\.asp\PersistentHandler]
@="{eec97550-47a9-11cf-b952-00aa0051fe20}"


- - end
 

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