home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / clone1_1.zip / RPRODUCE.TXT < prev    next >
Text File  |  1993-01-07  |  10KB  |  166 lines

  1. RPRODUCE: CLONE / REPLICA vs. 1.1 (c) Jim Groeneveld,  7/ 1-93.
  2. Transfer complete directory branches from one PC serially to another.
  3.  
  4. Using the programs below it is easy to make a copy of a harddisk to another
  5. one via a user specified serial port with a speed of maximally 115200 bps.
  6. One may also make a copy of only a part of the directory structure (a branch)
  7. on the first PC to another arbitrary branch (or logical drive) on the second
  8. one. Optionally one may give a (limiting) file specification (default *.*).
  9.  
  10. Files:
  11. RPRODUCE DOC    10749   1-07-93   1:10a  Nederlandse documentatie file
  12. RPRODUCE TXT    10124   1-07-93   1:10a  This documentation file (English)
  13. RPRODUCE HST     3408   1-07-93   1:10a  History (English)
  14. CLONE    BAT    15992   1-07-93   1:10a  Batch file sends a branch (whole disk)
  15. CLONE    B2C    18257   1-07-93   1:10a  Prepared version for BAT2EXEC compiler
  16. CLONE    C0M    24329   1-07-93   1:10a  Compiled version of CLONE.B2C
  17. CLONE    EXE *   9803   1-07-93   1:10a  LZEXE compressed version of CLONE.COM
  18. REPLICA  BAT    13896   1-07-93   1:10a  Batch file receives branch (whole disk)
  19. REPLICA  B2C    17192   1-07-93   1:10a  Prepared version for BAT2EXEC compiler
  20. REPLICA  C0M    23201   1-07-93   1:10a  Compiled version of REPLICA.B2C
  21. REPLICA  EXE *   9451   1-07-93   1:10a  LZEXE compressed version of REPLICA.COM
  22. BAT2EXEC BUG     5367   1-08-93   1:37p  Bugs and other differences w/ BAT2EXEC
  23. SLASH-IF FOR     6446  12-21-92  11:16a  Undocumented DOS handling of a slash
  24. COMPILE  DOS    10283  12-21-92   9:28a  Preparing a .BAT file for compiling
  25. ZIP      COM *#  8779   1-15-92  11:45p  Communications program, max. 11500 baud
  26. ZIP      DOC  # 32546   1-15-92  11:43p  Documentation of ZIP (vs. 1.51)
  27. ZIPCFG   COM  #  2386   1-14-92   7:00p  Configuration program for ZIP
  28. ZIPDUP   COM  #  1929   8-13-91  11:43a  (part of ZIP, see ZIP.DOC)
  29. DISK     COM *#  5632   8-05-86   8:43p  Makes file listing of disk
  30. DISK     DOC  # 11136   8-05-86   8:45p  Documentation of DISK
  31. GET&PUT& ZIP      908   5-20-92   1:00a  Other related .BAT files (see below)
  32.  
  33. * = absolutely necessary
  34. # = not included in this package, but available elsewhere as PD or SW package
  35.  
  36. (CLONE.COM and REPLICA.COM have been renamed to CLONE.C0M and REPLICA.C0M
  37.  respectively in order to let DOS start the corresponding .EXE files.)
  38.  
  39. Furthermore SUBST.EXE or SUBST.COM of the concerning DOS version is necessary,
  40. as well as FIND.EXE or FIND.COM.
  41.  
  42. Other (related, but not necessary) files: (in included package GET&PUT&.ZIP)
  43. GET      BAT      244   5-20-92   1:00a  Receives one or more files/wildcards
  44.                                          /lists with SERVER on the other end
  45. PUT      BAT      242   5-20-92   1:00a  Sends one or more files/wildcards/lists
  46. SERVER   BAT       35   5-20-92   1:00a  Transfers one or more files/wildcards
  47.                                          (/lists)
  48. RECEIVE1 BAT       37   5-20-92   1:00a  Receives one file/wildcard/list
  49. PORTFIND COM  #  4833   9-08-88   8:40a  Shows the LPT and COM ports
  50. PORTFIND DOC  #  7369   9-07-88  10:11a  Documentation of PORTFIND
  51.  
  52. If one wishes to copy a harddisk completely or partially to another PC this may
  53. be done using the programs listed above and a null-modem cable between the two
  54. respective RS-232 ports (pin 2 --> 3, pin 3 --> 2 and pin 7 --> 7).
  55. Using the program PORTFIND one may find the available COM ports.
  56. With ZIPCFG one may choose the correct COM port and the desired speed (bps)
  57. for the program ZIP (also as ZIP parameters). In interactive mode ZIP can check
  58. the connection firstly: start ZIP on either end, put one end in server mode (V)
  59. and request a directory from the other end of the first one (D>*.*) (see also
  60. ZIP.DOC) and watch whether the communication works.
  61.  
  62. One has to make sure that the target disk has been formatted and the DOS system
  63. is present. It is not necessary that COMMAND.COM is available on the (hard)disk,
  64. but it works more quickly then COMMAND.COM on the working (boot) diskette.
  65. It is handy to run the programs from (two equal) floppies in both PC's, but
  66. that is not necessary; they may initially be put on the harddisks. They should
  67. rather be available in the current subdirectory on the current drive (A:\).
  68. Otherwise they should be found (run) via the current path set.
  69.  
  70. Furthermore it is necessary that both PC's have been started with a CONFIG.SYS
  71. file in which in any case the line LASTDRIVE=Z is included. Drive Z: is being
  72. substituted temporarily. Only directory branches from/to logical drives (A:,
  73. B:, C:, D:, E:) can be transferred. SUBSTituted drives (F:..Z:) can not be
  74. specified, instead specify the corresponding substituted subdirectory at the
  75. logical drive. The contents of network drives can not be transferred because
  76. of program-technical reasons (no SUBST (and JOIN) possible with/on network
  77. drives) (see below for alternative).
  78.  
  79. When transferring a complete harddisk (from C:\ at one to C:\ at another) the
  80. COMMAND.COM on the source disk would overwrite the same file on the target disk.
  81. This may not occur (unless identical), because the COMSPEC variable points to it
  82. and it should be present during the transfer because it is being loaded more
  83. than once. One could make COMMAND.COM write-protected. Of course write-
  84. protected will not be overwritten. Another solution is to use the /N parameter
  85. on the sending end causing existing target files not to be overwritten. N.B.
  86. Hidden and system files implicitely can not be transferred by ZIP.
  87.  
  88. If during the transfer of many files (a whole disk) the process is being
  89. aborted by whatever cause, one may restart it and additionally specify
  90. the option '/N' in order not to overwrite existing files. The reproduction
  91. process then runs automatically from the point where it was interrupted.
  92.  
  93. Syntax for sending:
  94. Enter: "CLONE «drive»«path» [«filespec»] [options]" of subdirectory to
  95.               transfer, including all subdirectories below (branches),
  96. with   «drive»  = logical (not substituted) drive A..Y (not Z:),
  97. and    «path»   = complete pathname, without trailing \, unless root,
  98. and [«filespec»]= optional file specification, wildcard (default *.*),
  99. and   [options] = one or more of optional parameters below:
  100.              .s : skip initial test for temporary scratch files
  101.              .d : delete specified files after successful transfer
  102.            ( /1│/2│/3│/4 : COM port number
  103.            ( /P : prompt for each file
  104.   see also ( /N : no overwrite (default overwrite)
  105.   ZIP.DOC  ( /E : send only already existing files (useless in this case)
  106.            ( /T : overwrite only older files, not newer ones
  107.            ( /Bbaudrate : sets baudrate
  108. Example: "CLONE C:\" or "CLONE D:\WORK\TEXTS *.TXT /2 .S /t .d".
  109.  
  110. Syntax for receiving:
  111. Enter: "REPLICA «drive»«path» [options]" of receiving subdirectory,
  112. with   «drive»  = logical (not substituted) drive A..Y (not Z:),
  113. and    «path»   = complete pathname, without trailing \, unless root,
  114. and   [options] = one or more of optional parameters below:
  115.              .s : skip initial test for temporary scratch files
  116.              .x : skip check for existing files in target directories
  117.   see also ( /1│/2│/3│/4 : COM port number
  118.   ZIP.DOC  ( /Bbaudrate : sets baudrate
  119. Example: "REPLICA C:\" or "REPLICA D:\WORK\TEXTS /2 .X".
  120.  
  121. Help is being given by only entering: CLONE, resp. REPLICA, eventually followed
  122. by ?, /?, -?, /h or /H.
  123. The drives and subdirectories from which one departs (the specified stem of the
  124. underlying branches of the tree, the top directory) may be different on both
  125. sides, for example "CLONE D:\MAIN\BIN" and "REPLICA C:\BIN".
  126. Furthermore at least with DOS 3.3 it has appeared that these path specifications
  127. do not need to be absolute (drive:\full\path), but may be relative as well
  128. (SUBST uses and accepts this), for instance "CLONE ." (current directory) and
  129. "REPLICA sub" (directory SUB just below current directory) or "CLONE ..\sub"
  130. and "REPLICA \" or "CLONE \sub" and "REPLICA sub1\sub2", etc.
  131. This is not guaranteed to work with all DOS versions though.
  132.  
  133. Attention! Because of a bug in the batch compiler BAT2EXEC it may be possible
  134. that CLONE and/or REPLICA lock up and try to send output to the printer port(!).
  135. In that case do not use the compiled programs (.EXE, .COM), but only the batch
  136. (.BAT) files, by removing the .EXE and .COM files (see further BAT2EXEC.BUG).
  137.  
  138. WARNING:
  139. Avoid the use of path names within the supplied branch and file specifications
  140. having %-characters in them. These are being written literally into auxiliary
  141. files and the %-characters including their successive characters may be
  142. interpreted as batch file or environment variables. The results will be
  143. unpredictable, but certainly erroneous.
  144.  
  145. Transferring networkdrives: copy them firstly to/from e.g. C:\path using XCOPY
  146. before (or after) the transfer or create a compressed "disk" (or part of it)
  147. with PKZIP and transfer the resulting .ZIP file as one file using PUT and
  148. RECEIVE1 and PKUNZIP it at the target. (Requires much free disk space!)
  149. (PKZIP-command: pkzip -upr -whs zipfile.ZIP d:\sourcepath\*.*
  150. PKUNZIP-command: pkunzip -o -d -JHSR zipfile.ZIP d:\targetpath).
  151.  
  152. System requirements:
  153. IBM-PC (88/86/x86) or compatible
  154. (MS)DOS 2.x or above
  155. At least sufficient memory to load successive copies of COMMAND.COM (batch) or
  156. nested copies of CLONE or REPLICA (compiled) and ZIP and other additional
  157. temporary scratch batch files. It seems that using the .BAT files 128kb would
  158. be sufficient, while using the .COM or .EXE files 256kb is needed.
  159.  
  160. Centrum voor Medische Informatica TNO       <Email>              |  |  |\/|
  161. TNO Center for Medical Informatics | GROENEVELD@CMI.TNO.NL  |  \_/  |  |  |
  162. ( CMI-TNO )    | Y. Groeneveld     | GROENEVELD@CMIHP1.UUCP | Jim Groeneveld
  163. P.O.Box 124    | Wassenaarseweg 56 | GROENEVELD@TNO.NL      | Schoolweg 14
  164. 2300 AC Leiden | 2333 AL Leiden    | ...@HDETNO51.BITNET    | 8071 BC Nunspeet
  165. Nederland.     | (+31|0)71-181810  | Fax (+31|0)71-176382   | 03412-60413
  166.