home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / cfgcmd.zip / README < prev   
Text File  |  1994-09-26  |  2KB  |  42 lines

  1. ┌─────────────────────────────────────────┐
  2. │ CFG - configuration file update utility │
  3. │                                         │
  4. │ Written September 1994 by Jeff J. Langr │
  5. │         Public domain software          │
  6. └─────────────────────────────────────────┘
  7.  
  8. CFG is a simple Rexx utility to update environment variable settings in
  9. configuration files -- usually CONFIG.SYS.
  10.  
  11. Syntax:
  12.   CFG cfgfile environmentvar value [location]
  13.  
  14.   where
  15.     cfgfile        = name of configuration file to update; often C:\CONFIG.SYS
  16.     environmentvar = environment variable; for example, PATH, LIBPATH, COBDIR
  17.     value          = value string to ADD to the environment variable setting
  18.     [location]     = optional positioning of added value: F=front, B=back
  19.  
  20. Examples:
  21.  
  22.    Given the CONFIG.SYS entry:
  23.       SET PATH=C:\OS2;C:\OS2\MDOS;E:\SQLLIB
  24.    and the command line execution as follows:
  25.       CFG C:\CONFIG.SYS PATH E:\UTIL F
  26.    the PATH entry in CONFIG.SYS will now read:
  27.       SET PATH=E:\UTIL;C:\OS2;C:\OS2\MDOS;E:\SQLLIB
  28.  
  29.    Given that there are no entries in C:\CONFIG.SYS for COBDIR,
  30.    and the command line execution as follows:
  31.       CFG C:\CONFIG.SYS COBDIR F:\COBOL
  32.    the following line will be added to the end of CONFIG.SYS:
  33.       SET COBDIR=F:\COBOL
  34.  
  35.  
  36. I claim no responsibility for damages caused by this routine.  Back up your
  37. configuration file before using.  You are more than welcome to make changes to
  38. this utility as needed.
  39.  
  40.    Jeffrey Langr
  41.    MCI Mail ID: 539-2548
  42.