home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / CNFIG218.ZIP / CONFIG.DOC < prev    next >
Encoding:
Text File  |  1992-10-24  |  6.4 KB  |  132 lines

  1.                              CONFIG
  2. Original C version by Mike Klein, Pascal adaptation by Jim Strasma
  3.                                   Novell API unit   by Mike McCall
  4. Version 2.18                                       As of 10/23/92
  5.  
  6.      CONFIG determines and displays the hardware configuration of
  7. the computer in which it is run, and optionally SETs the follow-
  8. ing DOS environment variables based on the results of its tests:
  9.  
  10.      NETADDR    = Network address of your PC
  11.      PSTAT      = Physical station of your PC on that network
  12.                   (When saved as a DOS environment variable,
  13.                    this value is trimmed to maximum of 8 low-order
  14.                    hexadecimal digits, so it can be used as a DOS
  15.                    filename. However, when displayed or saved to disk,
  16.                    all digits except leading zeroes are preserved.)
  17.      STATION    = logical connection of your PC on current primary server.
  18.      SOCKET     = logical socket number of current process
  19.                   (not stored in DOS environment)
  20.      NAME       = Novell user's login name
  21.      FULLNAM    = Novell user's full name (not stored in DOS environment)
  22.      OS_VERSION = Version of DOS
  23.                     format: V#[#].@@
  24.                     where  # is the 1 or 2 digit major version number
  25.                       and @@ is the 2 digit minor version number
  26.                     e.g. V3.21, V5.00 or V20.00 (the latter by OS/2 V2.0)
  27.      CPU        = Central Processing Unit type
  28.                     808x, 286, or 386 (486 is listed as 386)
  29.      CLASS      = PC or AT (all 286's & above are AT)
  30.      FPU        = Floating Point Unit
  31.                     T or F
  32.      CONV       = K (Kilobytes) of conventional DOS RAM
  33.                     0 - 640
  34.      FREE       = K (Kilobytes) of " " " available for use
  35.                     0 - 640
  36.      EXP        = Expanded memory
  37.                     T or F
  38.      EXT        = Extended memory
  39.                     T or F
  40.                   Note: Memory managers often lie about this;
  41.                         for example claiming to have no extended RAM
  42.                         because they reserved it all to emulate expanded RAM.
  43.                         F here doesn't mean the PC has no extended RAM,
  44.                         but rather that none is currently available.
  45.      MOUSE      = Mouse pointing device
  46.                     T or F
  47.      MODE       = Video Mode
  48.                     COLOR or MONO
  49.      VIDEO      = Video display adapter
  50.                     MDA, HERC, CGA, EGA, PGA or VGA
  51.  
  52.      CONFIG displays the message "SYSTEM CONFIGURATION" and its
  53. own version number, followed by the apparent values of the above
  54. variables in the current machine.
  55.  
  56.      If CONFIG is called with the parameter /E (i.e. CONFIG /E),
  57. DOS environment variables will be set to the values shown and nothing
  58. will be displayed.
  59.  
  60.      If CONFIG is called with the parameter /F, the effect will be
  61. the same as /E plus the values will be written to a DOS text file.
  62. If a path is specified after /F (e.g. CONFIG /F Y:\SHARED\), the
  63. data will be written to that drive and directory. Otherwise,
  64. it will be written to the root directory of the current drive.
  65. The file name will be: CNFIGyym.TXT, where yy is the current year,
  66. and m the current month. To fit the month into only one space,
  67. A=10, B=11 and C=12. (Thus CNFIG92A.TXT is created in October, '92.)
  68.  
  69.      The data saved to disk is only the contents, not the names of the
  70. DOS environment variables set by CONFIG, in comma-delimited format.
  71. (Each data element is surrounded by quotation marks, and separated from
  72. its successor element by a comma; each record ends with a carriage return.)
  73. This format may be imported directly into other programs, such as
  74. Borland's Paradox.
  75.  
  76.      When called with /F, two additional values are saved:
  77.  
  78.      D[D]       = Current day of the month (1-31)
  79.      H[H]:MM    = Current hour (00-23) and minute (00-59)
  80.  
  81.      Both are obtained from the file server if possible, but can also be
  82. obtained from DOS.
  83.  
  84.      When called with /F, some data values are shortened:
  85.  
  86.      OS_VERSION omits the leading "V".
  87.      CPU        is limited to one character: 2, 3, 8, or N
  88.      CLASS      is omitted
  89.      MODE       is limited to one character: C or M
  90.      VIDEO      is limited to one character: M, H, C, E, P, or V
  91.      NETADDR, PSTAT, NAME & FULLNAME are stored empty ("") if not present
  92.      STATION    is omitted
  93.      SOCKET     is omitted
  94.  
  95.      If the value of NAME is GUEST or LAB, it is stored to file as only G or L
  96. respectively, and the value of FULLNAM is not stored at all. This is useful at
  97. WIU, where many users of some servers are anonymous users of shared accounts.
  98.  
  99.      (This is one example of a WIU-specific optimization. See the source code
  100. for others, such as REMs that can be removed to add SOCKET to the DOS
  101. environment.)
  102.  
  103.      If CONFIG is called without any command line parameters, its
  104. information is displayed on screnn but not saved to either disk or RAM.
  105.  
  106.      Each of the three options is useful, in different ways:
  107. 1    Calling CONFIG alone gives a quick review of the setup of the PC,
  108.      a weak but free substitute for such products as CheckIt.
  109.  
  110. 2    Calling CONFIG with /E allows programs to prevent access by PCs
  111.      unable to use them politely. For example, the newest release of
  112.      Paradox requires an AT class computer. This is testable as follows:
  113.        IF (%CLASS%=='PC') GOTO SORRY
  114.      where :SORRY is the label of an ECHO that tells where to find a
  115.      computer set up for the new Paradox before exiting without
  116.      attempting to run it on the current PC. This makes a network seem
  117.      more reliable to clients, by forestalling attempts to run programs
  118.      on incompatible hardware.
  119.  
  120. 3    Calling CONFIG with /F as part of each powerup or login sequence
  121.      tracks usage of a computer or server, again as a weak but free
  122.      substitute for commercial programs like NetHQ.
  123.  
  124.      Possible (but arguable) future change:
  125.      Only logging changed records to save disk space. If implemented,
  126. the file name would no longer need to change monthly, but the file would
  127. no longer track the date and time of each login
  128.  
  129.      Likely change:
  130.      Logging total RAM instead of DOS and free DOS RAM to disk.
  131. (Problem is getting an accurate value for combined total of EMS & Extended
  132. RAM, when programs like QEMM may report all of RAM for both separately.)