[Discussion] Which
Dave Yeo
daveryeo at telus.net
Mon Mar 12 22:15:38 PDT 2007
On Mon, 12 Mar 2007 21:55:51 -0600, Chuck McKinnis wrote:
>
>Dave Yeo wrote:
>> Does eCS come with which.exe installed?
>> Dave
>
>No but a much better utility is findpath.exe from the old free portion
>of the FM/2 package.
>
>FINDPATH.EXE compiled Sep 1 1995 01:50:09
> Usage: FINDPATH <environment_variable_name> [filename]
> Examples: FINDPATH PATH AFILE.EXE (Find AFILE.EXE on PATH)
> FINDPATH DPATH *.DOC (Find all *.DOC files on DPATH)
> FINDPATH LIBPATH (List LIBPATH directories)
>
>It lists the found items in the order in which they were found.
Thanks, just trying to debug a Java app which hangs running which.exe
here looking for a browser.
Which.exe
(http://hobbes.nmsu.edu/pub/os2/util/disk/which-2.1.5_os2.zip) is
actually much better then findpath IMO.
Usage: which.exe [options] [cmd ... ]
Options:
(default behavior is to find location of program executed as "cmd")
-1 show the first match from all cmd args; display nothing if not
found
-a list all matches (With -1, list all first matches of cmd args)
-b search directories in BOOKSHELF for book (.inf and .pdf) files
-d search directories in DPATH for data files
-e search directories in a given env var; Example: -e EPMPATH
-h search directories in HELP for help (.hlp) files
-l search directories in LIBPATH (BEGIN/ENDLIBPATH) for DLLs,
LIBs, As
-i search directories in C_INCLUDE_PATH for header (.h) files
-j search directories in INCLUDE for header (.h) files
-q quiet mode (only returns error code without onscreen messages)
-s show file date/time and size
-u revert to OS/2 style '\' dir separator (default is now Unix
style '/')
Dave
cmd name to be searched (wildcards can be used)
Examples: which.exe -las emx*
which.exe -las foo*.bar (override the default extension)
More information about the Discussion
mailing list