SrchPath - Copyright (C) 2010-2012, Incode Systems, Inc.
Usage: FileName [FileName2 [FileName3]]...
SrchPath searches for FileNames and writes the fully qualified name
of the first matching file found for each FileName to the standard
output. If a FileName contains spaces, surround with double quotes.
The current directory is searched first, followed by the PATH.
Tip: To suppress file name output, redirect to NUL.
(example: SrchPath MyFile>NUL)
All option searches for all files.
If All option not given, exits on first missing file.
All Paths searches for FileName in current directory and all Paths,
using each extension (if FileName does not contain an extension),
and lists all found.
If All Paths option not given, reports first file found when paths
are searched in order and extensions are searched in order.
Specifies extensions to search.
If extension not given, the PATHEXT environment variable is used.
Extensions are only used is FileName does not have an extension.
Tip: To explicitly search for a file without an entension add a period
without an extension (example: MyFile1. MyFile2.)
Missing files option. Lists missing files instead of files found.
-path:d: Specifies the path to search
If path contains spaces, double quote (example: "-path:d:Path")
If path is not given, the PATH environment variable is used.
writes "ext=" followed by the PATHEXT value from the environment.
Opens a MessageBox showing first FileName not found.
(add -a option to show all files not found in a MessageBox)
-unc Use UNC name for files not on a local drive.
ERRORLEVEL is 0 if each FileName was found.
If a FileName was not found, or the search resulted in an error,
ERRORLEVEL is 1 if first FileName not found, 2 if second, etc.
www.incodesystems.com mailto:sales1To see complete usage, type SrchPath /? | more