home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
cfgcmd.zip
/
README
< prev
Wrap
Text File
|
1994-09-26
|
2KB
|
42 lines
┌─────────────────────────────────────────┐
│ CFG - configuration file update utility │
│ │
│ Written September 1994 by Jeff J. Langr │
│ Public domain software │
└─────────────────────────────────────────┘
CFG is a simple Rexx utility to update environment variable settings in
configuration files -- usually CONFIG.SYS.
Syntax:
CFG cfgfile environmentvar value [location]
where
cfgfile = name of configuration file to update; often C:\CONFIG.SYS
environmentvar = environment variable; for example, PATH, LIBPATH, COBDIR
value = value string to ADD to the environment variable setting
[location] = optional positioning of added value: F=front, B=back
Examples:
Given the CONFIG.SYS entry:
SET PATH=C:\OS2;C:\OS2\MDOS;E:\SQLLIB
and the command line execution as follows:
CFG C:\CONFIG.SYS PATH E:\UTIL F
the PATH entry in CONFIG.SYS will now read:
SET PATH=E:\UTIL;C:\OS2;C:\OS2\MDOS;E:\SQLLIB
Given that there are no entries in C:\CONFIG.SYS for COBDIR,
and the command line execution as follows:
CFG C:\CONFIG.SYS COBDIR F:\COBOL
the following line will be added to the end of CONFIG.SYS:
SET COBDIR=F:\COBOL
I claim no responsibility for damages caused by this routine. Back up your
configuration file before using. You are more than welcome to make changes to
this utility as needed.
Jeffrey Langr
MCI Mail ID: 539-2548