home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / zsys / znode-12 / s / z3help16.lbr / CD.HZP / CD.HLP
Encoding:
Text File  |  1993-06-12  |  6.0 KB  |  137 lines

  1. ;
  2.                                     CD.COM                                    
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5. CD.COM         3k (20)   8DF6  3.7        Carson Wilson 5/89       Z3COM2
  6. CD.3OM         3k (19)   7D90  3.7        Carson Wilson 5/89       Z3COM2
  7.  
  8.   1- Syntax  2- Usage  3- ST.COM  4- Notes  5- Err Msgs  6- Examples of Use   
  9.  
  10.  
  11.    Change Directory is used to move from one directory to another by using the 
  12. names or literal DU forms associated with the directories.  CD first logs into 
  13. the referenced directory,  and, if there is a file named ST.COM in it, CD will 
  14. log the user into the referenced directory and invoke ST.COM.   If there is no 
  15. file named ST.COM, CD will simply log the user in.  
  16.  
  17.    Original by R. Conn, 4/84.
  18. :1
  19.  
  20.  
  21.     Syntax  CD or CD //      <-- Print help message
  22.  
  23.             CD du[:]         <-- Activates ST.COM upon logging into directory
  24.  
  25.         or  CD du password   <-- Allows changing to a passworded directory
  26.  
  27.         or  CD dir[:]        <-- Activates ST.COM upon logging into directory
  28.  
  29.         or  CD dir password  <-- Allows changing to a passworded directory
  30. :2
  31.  Usage - 1/2 
  32.  
  33.    Under ZCPR3, there are two basic ways to log into a directory.   One way is
  34. by using the DU: or DIR: prefix, like:
  35.  
  36.           B1:ASM>TEXT:     ...or
  37.           B1:ASM>C7:
  38.  
  39. The other way is by using CD, like:
  40.  
  41.           B1:ASM>CD TEXT:  ...or
  42.           B1:ASM>CD C7:
  43.  
  44.    The tradeoff  is  in user efficiency.  If a directory is always  used for a 
  45. particular function, such as cataloging disks, CD may be preferred because  it 
  46. will not only log the user in but  will also run ST.COM,  which can set up his
  47. environment,  such  as by  running MENU  or  some  other  program  or group of 
  48. programs.
  49.  Usage - 2/2 
  50.  
  51.    The user's environment can change drastically by using CD to log into a new
  52. directory.  The names of the directories he can access can change (LDR changes 
  53. the Memory-Based  names),  the command search  path he uses can change, and he 
  54. can even find himself in a MENU environment or  other front-end instead  of  a 
  55. ZCPR3 command environment.
  56.  
  57.    As distributed, ZCPR3 permits 14 named directories simultaneously in memory 
  58. (though it's  easy to allocate more memory buffer space, 18 bytes per name, if 
  59. that's desired).   By  running ST,  a different named directory  file  can  be 
  60. loaded for each directory entered,  permitting  up to  448 names per (logical) 
  61. drive (14 names x 32 areas). 
  62. :3
  63.  
  64.  ST.COM 
  65.  
  66.    ST.COM  is  an  alias  file  used to  establish  desired  conditions  in  a 
  67. directory.  The only purpose of ST is to load the multiple command line buffer 
  68. with  a  command line when it is executed without any options.   This  command 
  69. line may contain a reasonable number of commands which perform any desired set 
  70. of  functions.   ST.COM  is searched for in the  current  directory.   CD  may 
  71. require a password to move to the new directory.  
  72.  
  73.    In the ZCPR3 environment, good candidate commands to be executed by running
  74. ST via CD include the following:
  75.  
  76.           LDR file.NDR   <-- Set up a new directory environ
  77.           PATH path-exp  <-- Set up a new Command Search Path
  78.           MENU           <-- Invoke the MENU Preprocessor
  79.           ECHO message   <-- Print a Message to the User
  80. :4
  81.  CD Notes - 1/1 
  82.  
  83.    a. Version 3.7 updates:
  84.       - Puts back space following STCL and LOGCL,  which were  deleted  due to 
  85.         poor Z3LIB documentation on  the PUTCL routine.   Though the help file 
  86.         says PUTCL takes a "null  terminated  command line"  as  a  parameter, 
  87.         PUTCL really  requires  a command BUFFER the size  of the current ZCPR 
  88.         multiple command  line  buffer.   CD  uses 256  bytes,  which  is  the 
  89.         current maximum for  Z-System.   PUTCL should implement its own buffer 
  90.         rather than requiring the user to provide one for it.
  91.  
  92.    b. Version 3.6 updates:
  93.       - Bruce Morgen pointed out that  a type-3 header does  not  prevent ZCPR 
  94.         3.0 from  loading  a  type-3  program  compiled  to  run  at  100 hex.  
  95.         CDxx.3OM therefore is  no longer a  type-3 program,  and now tests for 
  96.         ZCPR33  or above via  the  Z3LIB Z33CHK routine.   Z33CHK also returns 
  97.         false if BGii is present.
  98.       - If you  are  using  BGii  you  should  run  CDxx.1OM as  BGii does not
  99.         implement  the  message  buffer  drive  and  user  bytes  required  by  
  100.         CDxx.3OM.
  101.  CD Notes - 2/2 
  102.  
  103.       - Removed extra pages of space following labels STCL and LOGCL.
  104.       - Removed BGii existence check from CDxx.3OM, as Z33CHK handles this.
  105.       - Added ZSYSCHK for CDxx.1OM to test for ZCPR environment.
  106.  
  107.    c. Version 3.5 updates:
  108.       - All Z33 errors chain to error handler.
  109.       - All Z30 errors give message and abort.
  110.       - Only NON-error status messages are suppressed  by the ZCPR Quiet Flag.
  111.       - Uses Z3LIB GETCCP routine to  find  CCP,  allowing  CD  to  work under 
  112.         Z3PLUS.
  113.       - Implements assembly-time equate TYPE3 instead  of using Z33CHK,  which 
  114.         was inconsistent since  a type-3  header  would  have  prevented  CD's 
  115.         running under type-1 no  matter  what  Z33CHK said,  and  compiled two 
  116.         versions:  CD35.1OM is type 1 and  should  be installed with Z3INS and
  117.         used for ZCPR 3.0.  CD35.3OM is type 3 and is for ZCPR 3.3 and 3.4 and
  118.         Z3PLUS.  It has a type-3 header so will not run under ZCPR 3.0.
  119. :5
  120.  
  121.  
  122.  Selected Error Messages 
  123.  
  124.    "Command Line Overflow" 
  125.  
  126.       -- there was not enough room in the command line to insert the command
  127.          to invoke ST.COM.
  128. :6
  129.  
  130.  
  131.  Examples of Use 
  132.  
  133.    a. B0:WORK>cd text:<cr>     <-- Log into  directory TEXT:.  An ST alias
  134.       PW? mypass<cr>               in TEXT: might then load a new .NDR, set
  135.       C7:TEXT>                     up a new command search path and place
  136.                                    the user in a menu.
  137.