Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bring back only certain file types

0 views
Skip to first unread message

Tojam

unread,
Feb 11, 2002, 3:11:27 AM2/11/02
to

If you are using ASP you can write an If statement to
filter out other extensions.

TempExt = RS("filename")
Ext = Right(TempExt, 3)

Then write an if statement surrounding the Recordset
output.

If Ext = "asp" Then

Response.Write RS("filename")
Response.Write RS("vpath")
'Anything else you want included in the return

End If

>-----Original Message-----
>Hi all. I am trying to only bring back .asp files. We
use
>include files and the search results bring back the .htm
>files. any way to filter by only certain file
extensions
>and throw the rest out? in short, i only need the .asp
>files. thanks in advance.
>
>peter
>.
>

Hilary Cotter

unread,
Feb 11, 2002, 11:52:08 AM2/11/02
to
you can try

objQuery.Query="Select filename where filename
like '%.asp'"

>.
>

George Cheng [MS]

unread,
Feb 11, 2002, 12:00:44 PM2/11/02
to
Modify q.query to something like

q.query="("&compsearch&") and not #filename *.asp and not #filename *.htm
and not #filename *.txt"

Thank You

George Cheng

Microsoft Index Server and Site Server Search Support
Microsoft Application Center 2000 Support

http://www.microsoft.com/applicationcenter

Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2002
All Rights Reserved

0 new messages