home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol4n10.arc
/
LOCATE.DOC
< prev
Wrap
Text File
|
1986-09-11
|
3KB
|
62 lines
LOCATE Steven Holzner
Command PC Magazine Vol 4, No 10
Copyright 1985 Ziff-Davis Publishing Company
______________________________________________________
Purpose: Searches all files in the current and the
root directories of a drive for all
occurrences of any specified sequence (e.g.,
a word or phrase) of up to 20 ASCII
characters. Additional search paths and/or
drives may be specified by using Option 1.
Format: LOCATE searchstring
Remarks: In addition to returning the path(s) and
filename(s) of the file(s) in which the
requested string is found, LOCATE puts
searchstring into a context of up to 20
immediately surrounding characters.
LOCATE.COM is case sensitive; the string to
be found must be typed exactly. The program
does, however, strip "high-order" (non-ASCII)
bits from searchstring, so it can be used,
for example with WordStar document files.
Note:
1. Requires the use of DOS 2.0 or later.
Option 1: Normally, if LOCATE does not find the
requested string either in the current
directory or in the disk's root directory, it
simply exits. It does not automatically
search every subdirectory on every drive.
You can extend the search range, however, by
preparing a simple ASCII file that specifies
additional paths and/or drives. The name of
this file must be PATH.DAT, and it must be
located in the root directory (usually C:\
for hard disks, A:\ for floppies). An
example of such a PATH.DAT file would be
\WORK
\LEVEL1
\A:
Each line in the PATH.DAT file must end with
a carriage return and specifies an additional
path (or drive) for LOCATE to check before it
exits. The PATH.DAT file can be up to 300
bytes in length, and incorrectly specified
entries are ignored.
The use of Option 1 will, of course, slow
down the overall speed of the search.