home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / misc3 / check.doc < prev    next >
Text File  |  1987-02-03  |  3KB  |  44 lines

  1.                                     CHECK.COM
  2.  
  3.  syntax:  CHECK keyword parameter1 parameter2 ...
  4.  
  5.  purpose:  This is an extension of the DOS batch file capabilities.  When
  6.  run, Check returns an error level number to the batch file to report a
  7.  condition.
  8.        keywords and parameters       information returned
  9.        FileSize filespec             Length of file in K
  10.        FileFound filespec            0 - file found
  11.                                      1 - file not found
  12.        FileText filespec `string'    0 - string found
  13.                                      1 - string not found
  14.        DiskSpace [d:]                number of whole 16k blocks free
  15.                                      on indicated or default drive
  16.        Memory                        number of 16k RAM modules
  17.        VideoCard                     0 - monochrome display adapter
  18.                                      1 - color graphics adapter
  19.                                      2 - enhanced graphics adapter
  20.        Model                         machine ID byte
  21.        8087                          0 - 8087 or 80287 installed
  22.                                      1 - 8087 & 80287 not installed
  23.        80287                         0 - 8087 or 80287 installed
  24.                                      1 - 8087 & 80287 not installed
  25.        Time                          current hour (0-23)
  26.        Day                           current day (1-31)
  27.        Month                         current month (1-12)
  28.        VideoMode                     current video mode (0-16)
  29.        Version                       DOS version (major number) in use
  30.        KeyBoard                      0 - keyboard buffer empty
  31.                                      1 - entry awaiting processing
  32.        Keypress                      ASCII code of key pressed
  33.  
  34.  Operation: Enter the check command on a line in the batch file.  Have the
  35.  next line look at the returned error level number to determine the next
  36.  operation.  Example          check memory
  37.                               if not errorlevel 16 goto short
  38.                               goto end
  39.                               :short
  40.                               echo minimum 256 K required to run
  41.                               :end
  42.  
  43.  Source:  PC Magazine 10 Feb 1987 volume 6 number 3 page 299
  44.