home *** CD-ROM | disk | FTP | other *** search
- envircat.exe v1.2
-
- environment string concatenation
- 11-27-90 Mark Gardner
- c1990 Mark Gardner
- (released to public domain)
-
- operates on PREVIOUSLY loaded string elements in the environment, flagged
- as described below, and concatenates them together into a single string.
-
- USAGE:
-
- 1) use PATH or SET commands to load into the environment, strings
- that will be concatenated. The first of these should have the
- name that the ultimate string will have, e.g.:
-
- PATH=c:\;\;c:\utils
-
- The subsequent strings must be loaded immediately after the
- first, and have the essentially the same name as the first,
- except that the name must start with a '+' character. If
- there is more than one subsequent string, trailing characters
- must be added to distinguish them (for the sake of the SET
- command... envircat doesn't care, it only checks the characters
- after the '+' for the target name), e.g.:
-
- SET +PATH1=;c:\brief;c:\dos;
- SET +PATH2=d:\procomm
-
- Note: envircat will not add characters to the string -- hence,
- in this example, the semi-colon separators are included in one
- string or the other.
-
- Additional strings may be loaded into the environment before
- or after the set to be concatenated. There may be multiple
- sets for concatenation. Envircat does not need to be invoked
- at any particular time, although doing so will remove the
- 'trigger' names from the environment, thereby freeing some room.
-
- 2) invoke envircat, no arguments are needed. If envircat can find
- the environment (see source file headers for methods), it will
- concatenate the strings and give a report somewhat like this:
-
- environment string concatenation : ENVIRCAT v1.2
- c1990 Mark Gardner (placed in public domain)
-
- envircat found environment at 0E5F:0010
- envircat found 2 continuations
-
- If it can't find and verify the environment (by checking for
- at least two equal signs before a terminating double nul)
- it will report that it can't and safely go away. The max
- check length is 2048.
-
- 3) envircat can be invoked anytime, even with no intent to
- concatenate strings; it will merely report the location
- of the environment, since it will contain no trigger
- words anymore.
-
- envircat was inspired by a program 'LONGEST' available on CompuServe IBMSYS,
- written by a fellow named Pete Maclean. It didn't work locally because it
- was pre-DOS3.3, evidently. The current version of envircat (v1.2) has been
- tested on DOS 2.11, 3.10, 3.20, and 3.30.
-
- The distribution file is currently named ENVCAT12.ZIP. The intent
- is that this entire package be in the public domain. A portion of
- the work is from an article by Robert Scott Ladd, credits given in
- the file ENV_ADRS.ASM. The source code has been included in the
- distribution file. Bug reports or comments can be sent to Mark
- Gardner CompuServe 75076,2552, or to P.O. Box 149, Acton, CA 93510.