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

November 15th, 2003, 06:08 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 15th, 2003, 08:29 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

November 18th, 2003, 07:25 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

November 19th, 2003, 04:27 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|
|

November 19th, 2003, 07:07 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

November 20th, 2003, 06:37 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

November 20th, 2003, 06:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

December 29th, 2003, 04:10 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

April 6th, 2005, 02:36 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |