By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jul 8 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
pedestrian via WebmasterKB.com wrote on 08 jul 2008 in
microsoft.public.inetserver.asp.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)
Jul 8 '08 #2

P: n/a
"pedestrian via WebmasterKB.com" <u16758@uwewrote in message
news:86d41a0388cf0@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
Jul 8 '08 #3

P: n/a
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"
Jul 8 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.