home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / chp.zip / CHP.DOC next >
Text File  |  1992-08-21  |  7KB  |  241 lines

  1. CHP, to chip a large file into pieces.
  2.  
  3. Copyright (c) 1988, 1992 , by Luther J. Woodrum.
  4. All rights reserved.
  5.  
  6.      Introduction
  7.      ------------
  8.  
  9. CHP copies a file to diskettes, using only the space available
  10. on each disk, and requires no special formatting or other
  11. operations.
  12.  
  13. CHP suffixes each of the files thus produced,
  14. starting with .0, and continuing with .1, .2, etc..
  15.  
  16. The disks can be used to restore the original file,
  17. and can be read in in any order, unlike BACKUP and RESTORE.
  18.  
  19. CHP writes a .BAT file on the last diskette, which you
  20. execute to reassemble the original file after you have
  21. copied all of the pieces onto your hard drive.
  22.  
  23. CHP does not do any data compression.  It assumes that
  24. you cxan use PKZIP or other compression program to
  25. compress your files.  Typically you can run the compression
  26. steps unattended, so you do not have to wait for the
  27. compression program to run as part of the backup.
  28.  
  29. The goal in writing CHP is to minimize the amount of
  30. time you have to spend waiting for the operation to
  31. complete.  That is why I did not do the compression as part
  32. of the copy to diskettes.
  33.  
  34. Copyright Statement:
  35. --------------------
  36. Before we get farther, I must put in the usual words
  37. about copyright and use.
  38.  
  39. CHP is not free software.  It is copyrighted software,
  40. and is being distributed as shareware.
  41. I am providing it for you so you can try it out and
  42. see if you like it.
  43.  
  44. If you like it and support me in my work, I will be able
  45. to do more things that you may find useful in the future.
  46.  
  47. If you find it is useful to you, then you can register
  48. your copy by sending $25 (or more, if you like) and any
  49. comments and suggestions.
  50.  
  51. LJW  (the name of my business)
  52. 36 Wildwood Drive
  53. Poughkeepsie NY 12603
  54.  
  55. If you send me $25, then I will send you a disk
  56. with the improved version on it, which is explained below,
  57. and also descriptions of the other stuff I am working on.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. You may not sell copies of CHP for profit.
  69. You can make as many copies as you want for your own
  70. backup purposes, your also encouraged to pass out copies
  71. to every user you know as long as you distribute the whole
  72. package (As long as this doc file always accompanys the chp
  73. program). You are also encourage to upload this to any and
  74. all Bulletin Boards).
  75.  
  76. Since I haven't gotten paid for any work since the
  77. beginning of June 1992, obviously I'm hoping that you
  78. will like what I have done enough so that I can contribute
  79. more in the future.
  80.  
  81. This is the first time I have ever put anything on a
  82. bulletin board, so I don't really know what to expect.
  83.  
  84. Using CHP:
  85. ----------
  86. The syntax for chp is:
  87. chp infile [outfile_prefix] [/n[k]]
  88.  
  89. infile:        The input file
  90. outfile_prefix:The prefix for the output file(s).
  91.                The default is the input file name prefix.
  92. /n[k]:         The size for the smaller files.
  93.                K means n times 1024.
  94.  
  95. If the output prefix is on the A: or B: disk, the program
  96. will wait for you to insert the next disk and hit enter
  97. before it continues.
  98.  
  99. Also if the output is on the A: or B: disk, the program
  100. will determine how much space is available on the disk
  101. before it starts writing, and will write only as much
  102. as will fill it up, before going on to the next disk.
  103.  
  104. CHP will not erase anything that is already on any one
  105. of the diskettes; it looks to see how much space is
  106. available, and then only uses that much.
  107.  
  108. When the output only specifies a path, then it
  109. uses the input file prefix for the output prefix.
  110.  
  111. enter "chp ?" for help.
  112.  
  113. If you leave out the output file prefix, then CHP will
  114. use the prefix of the input file for the output file
  115. prefix.
  116.  
  117. Examples:           Remarks:
  118. ---------           --------
  119. PKZIP -arp hmm.zip \hmm\*.*
  120.                     Create the ZIP file for all files and
  121.                     subdirectories in the HMM directory.
  122.                     You can run this is batch mode while you
  123.                     are doing something else.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. chp  c:hmm.zip a:   Copy the file hmm.zip from the c disk
  134.                     to the A disk.  The first file written
  135.                     on the A disk will be hmm.0.
  136.  
  137.                     The file written on the next disk on the
  138.                     A drive will be hmm.1, and so on.
  139.  
  140.                     The last file written will be hmm.bat,
  141.                     which is the file to execute in order
  142.                     to put the file back together.
  143.  
  144. chp  c:hmm.zip A:BLOP
  145.                     The output files on A will be BLOP.0,
  146.                     BLOP.1, etc..
  147.  
  148.                     The last file written will be BLOP.bat,
  149.                     which is the file to execute in order
  150.                     to put the file back together.
  151.  
  152. Putting the file back together on your hard disk:
  153. -------------------------------------------------
  154. First, copy all of the files from the diskettes
  155. onto the hard drive into the directory where you
  156. want to reassemble the original file (e.g.
  157. copy A:HMM.* for each disk.)
  158.  
  159. One of the files will be the .BAT file (e.g HMM.BAT.)
  160.  
  161. Execute the .BAT file by entering its name.
  162. The original file will be reassembled in the following
  163. fashion:
  164.  
  165. The .0 file is renamed to be the target file, which
  166. was the original file name.  Be sure you don't have
  167. a file already with the same name as the target file.
  168.  
  169. The remaining files will be copied in binary and
  170. appended onto the target file.  As each one is copied,
  171. it will be erased from the hard drive.
  172.  
  173. The last step in the .BAT file is to erase the .BAT
  174. file itself.  This will cause an error message to
  175. appear "Batch file missing."  Just ignore this
  176. message, as it is part of the normal operation.
  177.  
  178. When you have completed this, the target file will
  179. have been reassembled on the hard drive (in this
  180. example it is HMM.ZIP.)
  181.  
  182. Then use PKUNZIP -D HMM.ZIP to restore all files
  183. and subdirectories in the original HMM directory.
  184.  
  185. Potential problems:
  186. ------------------
  187. If you do not have all the pieces on the hard drive when
  188. you start the .BAT file, then you will have to start over
  189. again by copying them all onto the hard drive again.
  190.  
  191. There must be enough disk space on the hard drive to
  192. hold the target file and another diskette worth of
  193. data at the same time.
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. Items for the improved version of CHP:
  201. ------------------------------------------------
  202.  
  203. The following items are in the improved version:
  204.  
  205. o    Eliminate the message "BAT File missing".
  206.  
  207. o    Check to make sure that all the pieces are there
  208.      before trying to reassemble them.
  209.  
  210. o    Check that there is enough space on the
  211.      hard drive to reassemble the target file
  212.      before starting to reassemble it.
  213.  
  214. o    If not all of the pieces are present, be able
  215.      to reassemble some of them and go back and
  216.      do the rest later.
  217.  
  218. The following items may or may not be in the
  219. improved version:
  220.  
  221. o    Detect when the A or B drive is removed
  222.      and replaced, without having to hit enter.
  223.  
  224. o    Fill the buffers while the diskette is being
  225.      changed.
  226.  
  227. o    Scramble/encrypt.
  228.  
  229. o    Password for scramble/encrypt.
  230.  
  231. o    A delta capability when a file is sent
  232.      repeatedly.
  233.  
  234. o    OS/2 support.
  235.  
  236. Depending on the response I get, some subset of these
  237. potential items will be in the registered version.
  238.  
  239.      Luther Woodrum,
  240.      August 18, 1992.
  241.