[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: request for info on searching files
- Subject: Re: request for info on searching files
- From: Norman Bauman nbauman@xxxxxxxx
- Date: Fri, 24 Aug 2001 00:19:04 -0400
At 01:24 PM 8/23/01 +0200, tom horton wrote:
>
>anyone devised a good way to do searches in xy 4 for dos that include
>strings in subdrctries as well as drctries? tom horton
I used to use a DOS "find" command in a batch file, and then I used the
Norton Utilities TS (Text Search). In fact, I used to use it up to 1998.
Here it is. It searches all my XyWrite and text files, collects them in a
file caled "search.tmp", and displays the file in LIST. I abandoned it for
ZyIndex and dtsearch, but I should probably go back and work on it some
more, since on my current computer it should go reasonably fast. And you
can do a lot with batch files ...
Norman
REM SEARCH.BAT
REM
REM This batch file uses Norton Utilities to search the disk for a text string
REM
REM Problem: When it finds a XyWrite-coded word, it deletes everything
after the MDNM.
REM
CD\
TM
TM>>SEARCH.TMP
TS C:\1998\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1997\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1996\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1995\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1994\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1993\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1992\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1991\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1990\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1989\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1987\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1986\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1985\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1984\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1983\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\1982\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\PROJECTS\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\STORYOLD\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\COMM\*.TXT "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\COMM\*.SAV "%1" /A/LOG/S >>SEARCH.TMP
TM
TS C:\PLANS\*.* "%1" /A/LOG/S >>SEARCH.TMP
TM>>SEARCH.TMP
LIST SEARCH.TMP
-------------------------------------------------------
Norman Bauman
411 W. 54 St. Apt. 2D
New York, NY 10019
(212) 977-3223
http://www.nasw.org/users/nbauman
-------------------------------------------------------