Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>seek.exe:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SEEK.EXE:


  The SEEK utility is very handy in making sure that the file you think your
  compiler and/or linker are using is the correct one.  SEEK will look for
  the specified file in the specified (or assumed) DOS environment path.

  For example, if you think that your linker may be picking up an old version
  of your BOGUS.LIB file somewhere in your LIB path, SEEK will tell you.  It
  will search your LIB path for the first BOGUS.LIB file that your linker
  would be using.

  If you're not sure which FOOBAR.CH file, CA-Clipper's preprocessor will be
  using, SEEK can tell you that as well.

  For obvious file extensions, there is no need to specify the environment
  path to search in, unless you want to force SEEK to look in a different
  environment path instead.  For example, if the file extension is .h, .ch,
  or .inc, SEEK will assume it's a header file and scan the INCLUDE path.

  SEEK will also optionally:

    .  List ALL of the specified files that were found in the selected DOS
       environment path.

    .  Change to the drive and directory of the found file.  Actually, for
       people who happen to nest their development files many levels deep,
       even when you know for sure which file is being used, this option can
       be used as a quick way to get to that directory.

    .  Copy the found file into the current directory.

    .  Display with a terse (single line, no title screen) output.  This is
       mainly useful when using SEEK in a batch file to display large groups
       of file paths.

  The command-line syntax for using SEEK.EXE is as follows:

    SEEK <cFileName> [<cEnvPath>] [options]

    Where:  <cFileName> = The file to search for.
             <cEnvPath> = Optional environment path to search for the
                          file in.  If no path is specified, obvious
                          defaults are assumed.

    Options:         /a = Find all occurrences of specified file in path.

                     /c = Copy the found file into the current directory.
                          (Not available if /a switch is used.)

                     /d = Change to the directory of the found file.
                          (Not available if /a switch is used.)

                     /t = Terse display (only show the SEEK result line)

   Examples:

    SEEK BOGUS.LIB LIB       // Searches LIB

    SEEK STDIO.H INCLUDE     // Searches INCLUDE

    SEEK TEST.EXE PATH       // Searches PATH

    SEEK BOGUS.LIB           // Assumes LIB

    SEEK BOGUS.LNK           // Assumes LIB

    SEEK STDIO.H             // Assumes INCLUDE

    SEEK STD.CH              // Assumes INCLUDE

    SEEK DOIT.BAT            // Assumes PATH


    // Search for TEST.EXE, but in the PRG environment path instead
    SEEK TEST.EXE PRG

    // Search for all MYUDC.CH files in INCLUDE path
    SEEK MYUDC.CH /a

    // Search for TEST.OBJ and copy it to the current directory
    SEEK TEST.OBJ /c

    // Search for DEMO.LIB, and change to the directory it's found in
    SEEK DEMO.LIB /d



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson