home *** CD-ROM | disk | FTP | other *** search
- Yes, yet another command-line file find utility. This one is 32-bit so it only
- works with OS/2 2.0 and higher. If you need a 16-bit version, contact me at my
- Compuserve id 72251,750 and I'll E-Mail you one.
-
- All options will be displayed by invoking WHEREIS without any command-line
- parameters. You will get the following screen:
-
- -------------------------------------------------------------------------------
- Whereis.exe, 32-bit, Version 2.3
- Copyright (c) Code Blazers, Inc. 1989-1993. All rights reserved.
-
- USAGE: whereis [starting-point]file-name [/q /s //drives]
-
- if no drive letter in starting-point and //drives are not specified,
- all hard drives are searched
-
- starting point can be any valid filespec
-
- /q - quiet - suppress copyright
- /s - suppress 'Searching' messages (good if redirecting to printer)
- //drives - specify each drive you want to search
-
- EXAMPLES:
- whereis e:foo.c - search only drive E for foo.c
- whereis foo.c //cde - search drives C,D, and E for foo.c
- whereis c:\os2\foo.c - search for foo.c using c:\os2 as the starting point
- whereis foo.c - search all hard drives for foo.c
-
- WHILE RUNNING, THESE KEYS CAN BE USED:
- D - Toggles displaying of directories being searched
- P - Pauses the program
- <ESC> - Exits the program
-
- ALTERNATE FORM: whereis [/e /v /a] EnvVarName filename
- /e - Find first file in Env Variable
- /v - /e, but show directories searched
- /a - /e, but find all occurrences of file
-
- EXAMPLES:
- whereis -e PATH foo.exe - search PATH env variable for first foo.exe
-
- -------------------------------------------------------------------------------
-
- Most of the time, if you always do a multiple-drive search, all you need to do
- is 'whereis filename'. The drives and directories will be displayed as they are
- searched.
-
- To search only one drive, 'whereis d:filename' where d is the drive letter.
-
- To search only specified drives, 'whereis filename //ddd' where each d is a
- different drive letter (that's right - 2 slashes). You can also use the '-' as
- a 'thru' symbol. For instance, //c-f means search drives c thru f. //cdj-i means
- search drives c, d, and j thru i. //d- means search all drives starting with d.
-
- To search using a certain directory as a root for the search,
- 'whereis d:\dirpath\filename' where d is the drive letter and dirpath is any
- valid directory path. Leaving out the drive letter will search the current
- drive.
-
- Using 'whereis .\filename' will start the search from the current drive and
- current directory using OS/2's special directory characters.
-
- Hitting the D key while search is in progress will toggle the displaying of
- the directories being searched. This is useful for long searches because
- displaying the directory names does take time - a 37 second search took only
- 31 seconds without listing the directory names.
-
- Use the /s option when redirecting to a printer. This will suppress all the
- messages that display program progress. Without the /s, your output will be a
- mess because the displays don't use line feeds.
-
- An alternate form of whereis was suggested by Claude A. Felizardo and is
- implemented in this latest release. It combines some of my other little
- utilities into whereis.
-
- Use the /e option to specify an environment variable to search for the file.
- For instance, to search the PATH for a file, do this:
-
- whereis /e PATH format.com
- whereis /e INCLUDE pmwin.h
-
- Wildcards are allowed in the filename.
-
- The /v (verbose) switch will display the directories in the environment
- variable that whereis.exe searches.
-
- The /e switch finds the first file that it finds that matches the filename and
- stops. The /a switch will force whereis to search all directories in the
- environment variable and display all files that it finds that match the
- filename. Since it searches the directories in the order of the directories in
- the environment variable, the first file will be the one found by most programs.
- For instance, 'whereis /a PATH link386.exe' will list all versions of
- link386.exe in your path but the first one will be the one invoked if you just
- type in 'link386' on your command-line.
-
- Any comments, suggestions, bug reports can be sent to my CIS id 72251,750.
-
- Rick Fishman
- Code Blazers, Inc.
- 4113 Apricot
- Irvine, CA 92720
-