Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2003, 06:08 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to salman
Default Search all types of files containing text.

I want to serch files of each formate (eg DOC, Xls, PDF etc) from folder and Sub folders containing specific text.
Pls give my the solution in ASP by using File System Object or any other.
I've tried that FSO is searching only from text files but not oher types.

Regards.

Salman

 
Old November 15th, 2003, 08:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, you're right in your findings. The FileSystemObject can only read from and write to text files. It can't handle binary files, like Word documents for reading and writing, although you can copy, move, delete, etc. these files.

Look into Index Server. It comes with most Windows versions and allows you to index files in your Web site or other locations on disk. From within ASP you can use code to query the Index Server catalog, and display the results in an ASP page.

Cheers,

Imar



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 18th, 2003, 07:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi salman,

Thanks for your personal message, but would you mind posting your questions to this forums? Makes it a lot easier than "personal negotiations", don't you think?

This way, a lot more people can see the question and provide an answer.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 19th, 2003, 04:27 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to salman
Default

Thanks for reply again But My according to following my problem. Pls guide me with complete solution.

"I want to serch files of each formate (eg DOC, Xls, PDF etc) from folder and Sub folders containing specific text."

Ragards
Salman



Quote:
quote:Originally posted by Imar
 Hi salman,

Thanks for your personal message, but would you mind posting your questions to this forums? Makes it a lot easier than "personal negotiations", don't you think?

This way, a lot more people can see the question and provide an answer.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 19th, 2003, 07:07 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, how about you Google a little:

http://www.google.com/search?hl=en&i...22+asp+example

This will bring you here and here and here and here and no, wait. I am sure you get the idea......


Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 20th, 2003, 06:37 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to salman
Default

THANKS for information.

I'm exploring Index Server right now.
Let me confirm again that I've to serch only files from different folders from my Hard Disk.

Actually I want to make the online Digital Library and have different types for soft material (XLS, DOC , PDF) etc in different forlders from which I have to find files containing text.
I've used text serch with and or not operators.




 
Old November 20th, 2003, 06:44 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, if I understand you correctly, this is possible with Index Server.
Just store your files where ever you want them, create a new Catalog and tell Index Server where to look for the files you want indexed. Then use some ASP code to retrieve the information you're searching for from the catalog and to return URLs to the files that contains these search words.

Remember that for this to be useful, you must allow your users to download the XLS and DOC files too.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 29th, 2003, 04:10 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to salman
Default

 I've explored Index Server throughly It is a good
 soultion for finding files only but text search is
 implementing only on MSword and text files and not
 from .ppt and .pdf. and others. Is there any special
 query for it?
 and
 what is the difference between Standard Query and
 Advance Query? Some results come from Stadard Query
 but some time that derived from Advance Query
 and in this help of Sample query what is difference
 between short form and long form
 Short form = @DocAuthor = Dalal Ketan
 and
 long form = {prop name=DocAuthor}= Dalal
 Ketan{/prop}

 Thanks


 
Old December 29th, 2003, 04:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

DId you try Google for this? "Index Server" and PDF should do the trick:

http://www.google.com/search?hl=en&i...+server%22+pdf

This brings you here: http://www.intranetjournal.com/ix/arc/5277.html. This site contains useful information about the Adobe iFilter for PDF which eventually brings you here: http://www.adobe.com/support/downloa...atform=Windows

where you can download the iFilter.

I wouldn't be surprised if your other queries can be answered with the same techniques.

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old April 6th, 2005, 02:36 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I am molly.
Ihave a similar problem as Salman
I need the code in VB6.0 for Searching a Text string in different types of files like .doc,.pdf etc
Please help .
Regards
Molly






Similar Threads
Thread Thread Starter Forum Replies Last Post
grep-search for text within files, within folders crmpicco Linux 2 September 1st, 2007 10:23 AM
Text or Varchar types too small? lancer SQL Server 2000 2 October 2nd, 2006 12:20 PM
Search files containing text salman Classic ASP Databases 1 October 22nd, 2003 05:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.