Search for a string within all asp pages in a folder?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pedestrian via WebmasterKB.com

    Search for a string within all asp pages in a folder?

    Is there any fast way to search for a specific string within all the files
    in a folder at a same time?

    Thanks a lot.

    --
    Regards,
    Pedestrian, Penang.

    Message posted via http://www.webmasterkb.com

  • Evertjan.

    #2
    Re: Search for a string within all asp pages in a folder?

    pedestrian via WebmasterKB.com wrote on 08 jul 2008 in
    microsoft.publi c.inetserver.as p.general:
    Is there any fast way to search for a specific string within all the
    files in a folder at a same time?
    "at the same time" with ASP-vbs or ASP-js:

    No! ASP is single treaded.

    And you probably do not have a multi processor server. ;-)

    You could load all the files in to strings and then search them,
    overloading your memory perhaps, gaining no speed, unless you do repeating
    "till-found" searches with different search strings.

    "fast" with ASP-vbs or ASP-js:

    That depends on your perception of time and the number and size of the
    files in such serverside directory.

    Since you are on foot anyway, pedestrian,
    just read the files one at a time into a string
    and search them with regex.
    JS regex will show visually friendlier code, vbs works as well.

    Or perhaps look for an application external to ASP?

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Anthony Jones

      #3
      Re: Search for a string within all asp pages in a folder?

      "pedestrian via WebmasterKB.com " <u16758@uwewrot e in message
      news:86d41a0388 cf0@uwe...
      Is there any fast way to search for a specific string within all the files
      in a folder at a same time?
      >
      What type of files are they?
      Do you have index server installed?


      --
      Anthony Jones - MVP ASP/ASP.NET


      Comment

      • Bob Barrows [MVP]

        #4
        Re: Search for a string within all asp pages in a folder?

        pedestrian via WebmasterKB.com wrote:
        Is there any fast way to search for a specific string within all the
        files in a folder at a same time?
        >
        Are you talking about using server-side script in an asp page to do this?
        Or are you talking more from a code-maintenance/administrative viewpoint? A
        text file editor like WildEdit might help in this case.
        --
        Microsoft MVP - ASP/ASP.NET
        Please reply to the newsgroup. This email account is my spam trap so I
        don't check it very often. If you must reply off-line, then remove the
        "NO SPAM"


        Comment

        Working...