ASP Search One Web Site Folder

Results 1 to 2 of 2

Thread: ASP Search One Web Site Folder

  1. #1
    Join Date
    Dec 1969

    Default ASP Search One Web Site Folder

    Afternoon,<BR><BR>Since I has such good fortune with the last question I asked (thank you Ed) I thought I would ask another.<BR><BR>I am using the script:<BR>A Text-Based Search Engine<BR><BR><BR>It is way cool but I am having a slight problem with it. <BR><BR>I would like to use to search files only within a specific folder instead of going all the way to the root. What can I add to this code to make it do that? <BR><BR>Thanks.<BR>Holly<BR><B R>

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP Search One Web Site Folder

    All you have to do is change the code that grabs the root folder. Currently, this is set to:<BR><BR>Set objFolder = objFSO.GetFolder(Server.MapPath("/"))<BR><BR>Just change the "/" to map to the correct folder. For example, if you wanted to search tbrough the folder specified by:, you would change the above line of code to:<BR><BR>Set objFolder = objFSO.GetFolder(Server.MapPath("/folder1"))<BR><BR>Hope this helps... happy programming! :)

Posting Permissions

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