PDA

View Full Version : Search not working properly


Rafael Nenninger
November 1st 04, 08:12 PM
I'm trying to find .asp pages with a certain table name (i.e.
"renewalInfo" )

When I ran the search I get no results. I know that I have that string in a
couple of pages. My file system search engine is working fine with other
file types, like Word documents, Excel spreadsheets, etc.

I tried typing the string outside the <% %> tags and when I do the search I
get the file results, so it seems like if the search engine in my file
system was not searching inside the <% %> tags.

I'm running XP Professional.

Has anyone experienced this situation?

Thank you for your time.

Rafael

Torgeir Bakken \(MVP\)
November 2nd 04, 10:55 AM
Rafael Nenninger wrote:

> I'm trying to find .asp pages with a certain table name (i.e.
> "renewalInfo" )
>
> When I ran the search I get no results. I know that I have that string in a
> couple of pages. My file system search engine is working fine with other
> file types, like Word documents, Excel spreadsheets, etc.
Hi

WinXP's search function filters out files to search in based on file
extensions (see further below).

Install the free Agent Ransack, it searches for text strings in *all*
types of files, and not just in a selection of "approved" file extensions
as the built-in search does. It's a *much* better search tool as well...

Download it from here:
http://www.mythicsoft.com/agentransack/default.aspx

Agent Ransack can save the search result to a file (or clipboard), as text,
comma separated text or tab separated text. E.g. Excel reads comma separated
text (csv) very well.

When searching for text inside files, Agent Ransack is also able to do a
preview of the lines the text was found in (just do a single click on the
found file).
Also, you can use regular expression on both the file name part and the find
text in files part.


If you still want to use the not so good search tool that comes
with WinXP to search for text in files, take a look at this:

Using the "A Word or Phrase in the File" Search Criterion May Not Work
http://support.microsoft.com/default.aspx?scid=KB;EN-US;309173

Or this:

Add Files to Containing text Searches
http://www.dougknox.com/xp/scripts_desc/xp_fix_search.htm


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Alex Nichol
November 2nd 04, 04:34 PM
Rafael Nenninger wrote:

>I'm trying to find .asp pages with a certain table name (i.e.
>"renewalInfo" )
>
>When I ran the search I get no results. I know that I have that string in a
>couple of pages. My file system search engine is working fine with other
>file types, like Word documents, Excel spreadsheets, etc.

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.

Now .asp *ought* to have such a handler set up - the same one as for
..htm. It may be that it is damaged. To restore standard settings for
it in registry, 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.
This is for .log - modify that for other extensions, with care.

- - 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}"

[HKEY_CLASSES_ROOT\aspfile]
@="Active Server Document"

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

[HKEY_CLASSES_ROOT\aspfile\ScriptHostEncode]
@="{0CF774D1-F077-11D1-B1BC-00C04F86C324}"


- - end

--
Alex Nichol MS MVP (Windows Technologies)
Bournemouth, U.K. (remove the D8 bit)

Google