Vincent Teachout wrote:
> I've used Norton's TS utility to search files for text since 1989.  Now 
> it won't run under Windows7 (not even in compatibility mode)  Does 
> someone have a suggestion for a light weight utility that can search 
> files specified by wildcards in recursive subfolders?  Command line 
> would be a plus.


Not exactly what you want but a Plan C if A or B fails!  I created this 
stub code to search/replace text in a file for me across several web 
folders so I didn't have to manually adjust all instances.

* pick the folder to search...you could modify to recurse
*CD C:\dev\webteam\
CD C:\dev\webteam\lib
*CD C:\dev\webteam\special-offers

liNumFiles = ADIR(laFiles,"*.CFM")
lcExpr = "/libs/s_code"
lcRepl = "/lib/s_code"

FOR liLoop = 1 TO liNumFiles
        lcFile = FILETOSTR(laFiles(liLoop,1))
        IF lcExpr $ lcFile THEN
                lcFile = STRTRAN(lcFile,lcExpr,lcRepl)
                COPY FILE (laFiles(liLoop,1)) TO (laFiles(liLoop,1)+".old")
                STRTOFILE(lcFile,laFiles(liLoop,1))
                ? "Fixed " + laFiles(liLoop,1)
        ENDIF
ENDFOR


-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to