Print Page | Close Window

find for files containing text

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6595
Printed Date: 31 March 2026 at 3:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: find for files containing text
Posted By: salman
Subject: find for files containing text
Date Posted: 21 October 2003 at 1:25am

Hi,

I want to search files from folders and subfolders that contains specific text. Like window's search criteria.

Send me Asp code or VB code for it, with Thanks

Regards

Salman




Replies:
Posted By: michael
Date Posted: 21 October 2003 at 7:14am
Some people have nerves.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: vshriniwasan
Date Posted: 21 October 2003 at 8:00am

Tell you what, I can tell you how to make this script, because I have done it for my intranet.

Just to tell you, you need understanding of file system object.

I would suggest setup an array of folder paths (Virtual or literal paths), where you want the script to search.

Using the For loop, textstream method and instr method you can search thorugh the files. If you find the file well you can take the file into a string. After the loop is over, just write the files and provide a direct link to the file.

Well I can do more, but I am little lazy today.....

Shrini



Posted By: KCWebMonkey
Date Posted: 21 October 2003 at 8:01am

Hi, I would like for you to make me an e-commerce site... It must be able to do DNA restructuring and also Lunar Physics... Please let me know when you are done. Thanks!

Waiting for Reply!!!!



Posted By: MorningZ
Date Posted: 21 October 2003 at 8:32am

Originally posted by michael michael wrote:

Some people have nerves.

agreed....



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: WebWiz-Bruce
Date Posted: 21 October 2003 at 8:43am
This guy is sending me emails now complaining about the rudness of your reseponses.

I have to give hime 10 out of 10 for nerve.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: KCWebMonkey
Date Posted: 21 October 2003 at 9:18am

LOL

Some people just don't understand that they can't just pop on to a discussion forum and start spitting out orders...



Posted By: MorningZ
Date Posted: 21 October 2003 at 10:32am

People want help on something?  i see that as fine, and will do my best to help.. others do the same

if people post: "do this for me, i don't want to learn, i just want the code"... screw 'em, they can find somewhere else as far as i am concerned......



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Semikolon
Date Posted: 21 October 2003 at 11:49am

hey salman and all you other newbies that dont want to try make a script on your own and just coming here and nearly commands ppl to help you with a complete script, SCREW YOU.. try on your own BEFORE you ask for help.. you can start searching the Internet for a sample script or a tutorial on asp,(aspin.com, pscode.com, w3schools.com, webwiz.net) THEN when you have tried, come back and ask politely for help, then maybe someone wants to help you out..

if someone ASKS me to help, im glad to help if i can, but if someone COMMANDS me to help, then i dont want to help them.. and i think im not alone about this...

OKAY?? yeah..



Posted By: dpyers
Date Posted: 22 October 2003 at 12:02pm

I'd like to note that for many in this forum, English is not their primary language and posts will often come across as abrasive when that was not the intent at all. Also, many who come here are new at programming, and new to the decorum followed by most help forums. That decorum presumes you will indicate what your problem is, and how you've tried to resolve it so far.

I remember being "stuck" on simple things as a newbie and required some handholding until I learned how to troubleshoot, so I don't mind helping people get jumpstarted.

However, it starts to become abusive when people don't at least make an attempt to do it by themselves first. They seem to think my time is less valuable than theirs. Some seem to want everything done for them. If you need that much help. Pay me!



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: MorningZ
Date Posted: 22 October 2003 at 12:14pm

such an excellent reply......

and the "however" part of your reply is my (and others) exact issue with this ASP-newbie... there is obviously absolutely zero effort shown that there has been even the slightest attempt at hell, even just searching for a script that does the asked functions

being stuck and need help?  i'll spend some time and spit out some lines of code, some links to where code exists, etc

being lazy or acting stupid about it?  couldn't have said the line They seem to think my time is less valuable than theirs any better myself...



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: pmormr
Date Posted: 22 October 2003 at 4:22pm
$57.99 an hour for ASP programming

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: farrukh
Date Posted: 23 October 2003 at 1:22am
Originally posted by pmormr pmormr wrote:

$57.99 an hour for ASP programming


kuch aata nahi aur $57.99 chahiye

i prefer to try first we i wont succeed then i will go for help out in internet or to my teacher

and you know i tried toooooooo much and found the solution by trying 10's of time and i take dozen of minutes but after then the sign of relief is like this .........



-------------
i have collected some nice avatars (37) and smileys (227) here you can download
http://www24.brinkster.com/webmastertool/download.html


Posted By: salman
Date Posted: 26 October 2003 at 11:29pm

I'd putted a question about "searching files containing text"  and found 12 reply. But no body gave serious answer to me. I'm very sorry to waist the time from that guys. they are just joking but not professional and serious in about this site.

Salman

 



Posted By: dpyers
Date Posted: 27 October 2003 at 1:14am
I think you had the answer in the post from vshriniwasan. He told you how to do it. If you start running into problems with your code, Post a specific question.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: pmormr
Date Posted: 27 October 2003 at 1:19pm

and just so you know, this is a public forum... we don't have to be professional. we're not getting paid to post on this forum



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: brolinuk
Date Posted: 27 October 2003 at 1:52pm
Help to the only polite and diligent guys please!!!


Posted By: gupta_ji
Date Posted: 29 October 2003 at 1:40pm
try ASP101.com

-------------
http://www.sgrj.com" rel="nofollow - chartered accountants India , http://www.delhiprofessionals.com" rel="nofollow - accounting Outsourcing ISO Certification



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net