;
                                 MEX+2Z.3OM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               2k (11)   E000  1.4        Bruce Morgen 12/90       Z3COM13

  1- Usage  2- Notes                                                          


   MEX+2Z is a  MEX-to-ZCPR3 chaining program.  It gives the MEX command 'CPM'
a shell capability like that in the 16-bit version's  SHELL command.   Version
1.3 eliminates the need for separate MEX and Mex-Plus  versions -  one program
now handles both.   Vs 1.4 allows the  single-character  MEX  command "/" as a
synonym for "CPM."

   Derived from MEX2Z.COM (for MEX114) by Bruce Morgen (12/8/86).
:1

    Usage 

MEX+2Z is used as follows:

   1) Set the real MEX.COM file so that  it will  not  be invoked by a command
      of the form "MEX".   This can be done by renaming it (e.g.,  to REALMEX)
      or by  putting it in  a  directory that  is not  along  the search path.
   2) Rename MEX+2Z.3OM to MEX.COM and place it along your path.

   On exit from MEX,  MEX+2Z runs  and looks for the  MEX command line left in
memory.   It scans for the CPM command,  takes anything  in the  command after
that,  and puts it into  the ZCPR3 command line with ";MEX" after  it so  that
the MEX alias will be run again after the other commands  are finished.   With
version 1.2, the baud rate constant will be passed to MEXRR as  a parameter so
that it can poke it into place so that MEX will come back at its old rate.  If
you leave MEX with the command "CPM CRUNCH FN.FT",  the file will  be crunched 
and then you will return to MEX.
:2
 MEX+2Z Notes - 1/2 

   a. Version 1.4 updates (12/24/90, Bruce Morgen):
      - Allows the single-character MEX  command  "/" as  a synonym for "CPM."
        This can be implemented by  patching the MEX command table or by a MEX
        read file called "/.MEX" with the single command "CPM"  (or the undoc-
        umented "ABORTCPM" to exit MEX+  without a screen message),  placed in
        the MEX "SEARCH" directory.   "/.MEX"  will only work if you have STAT
        EXTEND ON, of course.

   b. Version 1.3 updates (3/23/89, Bruce Morgen):
      - Eliminated need for alias or ARUNZ support.   Just  rename your actual
        MEX to REALMEX.COM and MEX+2Z to MEX.COM, make sure both are available
        on your Path.
      - Eliminated need for separate MEX and  MEX-Plus versions -- one program
        now handles both!

   c. Version 1.2 updates (3/9/89, Jay Sage):
      - Now set up as a type-3 program.  By loading at 200H, it can save MEX's
        current  baud  rate  and  restore  it  when  it  chains  back  to MEX.
        MEX+2ZE.COM is for use with an ARUNZ alias.
 MEX+2Z Notes - 2/2 

   d. Version 1.1 updates (12/11/86, Jay Sage):
      - Improved processing of the  MEX  command line to make it more reliable
        and make it work with multiple commands in MEX-PLUS.   The  code makes
        use of the way MEX-PLUS maintains the command line.   With  MEX114 the
        command line length is not  stored at the  beginning  of  the  command
        line; a value of zero is stored there.   Bruce Morgen's original tech-
        nique of scanning for the terminating  carriage  return  must be used.
        The MEXPLUS equate takes care of this.
