File:  [OS/2 SDKs] / os2sdk / os2doc / where.hlp
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:25:13 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1987, HEAD
Microsoft OS/2 SDK 12-15-1987

WHERE tries to find files
===============================================================================
Usage: WHERE [/r dir] [/qte] pattern ...

If /q is specified, then WHERE exits with zero if found and 1 if not found.

If /t is specified, the time and size of the file is displayed.

If /e is specified, the type of executable is displayed.

If /r is NOT specified WHERE will attempt to find files matching the patterns
by walking environment search strings.  By default, WHERE will attempt to find
the specified files by walking the PATH environment string.  If a pattern is of
the following form:

    $environment-name:filename

then WHERE will walk the specified environment name attempting to find the
specified file.

If /r is specified, WHERE will search dir and its subdirectories looking for
files matching the patterns.  When /r is specified, a pattern may have only
a filename part.

The filename part of the pattern may contain wildcards * and ? in the style
of the *NIX find command.

WHERE bar                 Find ALL bar along path
WHERE $foo:bar            Find ALL bar along foo
WHERE /r \ bar            Find ALL bar on current drive
WHERE /r . bar            Find ALL bar recursing on current directory
WHERE /r d:\foo\foo bar   Find ALL bar recursing on d:\foo\foo





KEYWORDS: WHERE find walk path environment

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.