SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    3MTA3
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    1,016
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading a Microsoft Word Document

    Is it possible to use ASP to:

    1. search a directory for Word documents
    2. scan the Word documents that were found for a desired keyword
    3. return the path of the word documents containing the keyword

    It will only be searching for files on the local network.

    Or does anyone know of a way to do this other than ASP?

    Thanks in advance for any help with this!

  2. #2
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Look into the FileSystemObject using ASP:

    http://www.w3schools.com/asp/asp_ref_filesystem.asp

    As far as searching across a network thats really not going to be easy to do for security reasons. You would have to give all of your drives rights for the IUSER account to search/open files which would leave you completely vulnerable to attacks.

    I would suggest a different route, but don't know of any to tell you.

  3. #3
    SitePoint Wizard wdmny's Avatar
    Join Date
    Jul 2000
    Location
    Here
    Posts
    1,010
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think the FileSystemObject would really work since you would need to be able to handle the Word format. Additionally, it would take a lot of work to build a searching engine that could handle relevancy and ranked listings. A far simpler way to go is to use Index Server. Index Server will scan many types of documents and return your results in a ranked order.

    You can read more specifics about searching with Index Server from this article I wrote a while back:
    Searching with Index Server


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •