home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / CLNZIP11.ZIP / CLEANZIP.TXT < prev   
Encoding:
Text File  |  1990-12-25  |  6.8 KB  |  167 lines

  1.  
  2.  
  3.  
  4.                                CleanZip
  5.  
  6.                  Copyright 1990 by William C. Serrano
  7.                          All Rights Reserved
  8.  
  9.  
  10.  WARRANTY NOTICE
  11.  
  12.          ■  Limited Warranty
  13.  
  14. THERE IS NO WARRANTY, EXPRESSED OR IMPLIED, BY STATUE OR OTHERWISE,
  15. REGARDING THE PROGRAMS AND RELATED MATERIALS, THEIR FITNESS FOR ANY
  16. PURPOSE, THEIR QUALITY, THEIR MERCHANTABILITY, OR OTHERWISE.
  17.  
  18. THE LIABILITY OF THE AUTHOR UNDER THE WARRANTY SET FORTH ABOVE SHALL
  19. BE LIMITED TO THE AMOUNT PAID BY THE CUSTOMER FOR THE PRODUCT.  IN NO
  20. EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, CONSEQUENTIAL, OR
  21. OTHER DAMAGES FOR BREACH OF WARRANTY.
  22.  
  23. THE AUTHOR RESERVES THE RIGHT TO MAKE ANY CHANGES TO THESE PROGRAMS,
  24. DOCUMENTATION AND CUSTOMER SUPPORT PLANS AT ANY TIME WITHOUT PRIOR
  25. NOTICE.
  26.  
  27. THIS SOFTWARE PROGRAM IS A PROPRIETY PRODUCT OF THE AUTHOR AND IS
  28. PROTECTED BY COPYRIGHTS AND INTERNATIONAL TREATIES.  YOU MUST TREAT
  29. THIS SOFTWARE LIKE ANY OTHER COPYRIGHTED MATERIAL, EXCEPT THAT YOU
  30. MAY MAKE AN ARCHIVAL COPY OF THE SOFTWARE FOR EACH COPY THAT IS
  31. LICENSED TO YOU.  YOU MAY DISTRIBUTE THE SOFTWARE TO OTHERS SO LONG
  32. AS THE SOFTWARE IS DISTRIBUTED COMPLETE AND UNMODIFIED. 
  33.  
  34. THE AUTHOR GRANTS YOU THE RIGHT TO USE THIS SOFTWARE FOR TRIAL PERIOD
  35. NOT TO EXCEED THIRTY (30) DAYS.  USE AFTER THIRTY DAYS REQUIRES
  36. REGISTRATION AS DOCUMENTED IN THIS MANUAL.
  37.  
  38.  
  39. REGISTRATION
  40.  
  41. Individuals may register CleanZip by sending one dollar to the
  42. following address.  
  43.  
  44.   William C. Serrano
  45.   Post Office Box 9698
  46.   Long Beach, CA 90810
  47.  
  48. Individuals who cannot afford one dollar may register by sending a
  49. picture postcard to the author, with comments, criticism,
  50. suggestions, or explanations and their name and address written on
  51. it.
  52.  
  53. Company, government and institutional users must contact the author
  54. for licensing information or register every user. 
  55.  
  56.  
  57.                                WHY?
  58.  
  59. Sometimes I unzip some files and change a few of them.  Then I
  60. usually forget which have changed and which have not.  Sometimes I
  61. want to save the changed files and sometimes I want to save the
  62. original unchanged files.
  63.  
  64.                                 WHAT?
  65.  
  66. CleanZip looks in all zips and at all the files in the directory.  It
  67. makes two batch files.  One batch file will delete all files that are
  68. identical inside the zip and outside.  The other batch file will add
  69. the changed files to the zip.  
  70.  
  71. You can look at the commands in the batch file with your editor
  72. before running the batch file.  You can change some or all of the
  73. commands if you need to do so.  CleanZip DOES NOT ERASE OR CHANGE ANY
  74. FILES.  Only the batch files erase or change files so that you can be
  75. sure CleanZip is doing exactly what you want it to do.
  76.  
  77.  
  78. CleanZip IS SAFE.  IT DOES NOT DELETE ANY FILES.  
  79.  
  80. CleanZip creates a batch file called DelinZip.bat.  DelinZip.bat is
  81. the batch file that deletes files that are identical or older than
  82. those in a zip.  
  83.  
  84. In DelinZip.bat one command is made for each file that exists both
  85. in a zip file and in that subdirectory.  If two files (ex:  frog.com)
  86. are the same it adds the command 'del frog.com'. If the file outside the
  87. zip is older CleanZip adds the command 'del frog.com'.  If the file
  88. inside the zip is older CleanZip adds the remark 'rem frog.com
  89. is not the same out of the zip'.  The last command in the batch file
  90. deletes the batch file itself.
  91.  
  92. CleanZip also creates a batch file called ZipChang.bat.  ZipChang.bat
  93. is a batch file that will add changed files to the zip that
  94. contains an old version by the same name.  In the batch file one
  95. command is made for each file that exists both in a zip file and in
  96. that subdirectory.  If the file outside the zip is newer CleanZip
  97. adds the command 'pkzip -a ZIPNAME FILENAME'.  The last command in
  98. the batch file deletes the batch file itself.
  99.  
  100. If you run the batch file DelinZip.bat, it does the deleting.  If you
  101. run the batch file ZipChang.bat it will add the newer files to the
  102. Zips.  If you want to change DelinZip.bat with your editor, what you
  103. do in the privacy of your home is your business.
  104.  
  105. I recommend that you use ZipChang.bat before DelinZip.bat.  If the
  106. same file is in two zips one zip may contain a newer copy than the
  107. other.  If the new copy is also outside the zips ZipChang.bat will
  108. update the older zip.  DelinZip will then remove the extra file
  109. outside of the zips.  If you run DelinZip before ZipChang, ZipChang
  110. will not be able to update the zip.
  111.  
  112.                                WHERE?
  113.  
  114. CleanZip only works on zips and files in the same subdirectory.
  115.  
  116.                                  HOW?
  117.  
  118. Files are considered identical if the name, size, date and time are
  119. identical.  It is possible to deliberately create files with
  120. different contents that would meet this test.  It is almost
  121. impossible for you to do this accidently.  You could create two
  122. different files with the same time, date, name and size.  It is
  123. unlikely to happen accidently.  That is why CleanZip only makes a
  124. batch file for you to use.  It is up to you to decide if you might
  125. possibly have two very sneaky files with the same name.
  126.  
  127. CleanZip reads the contents of each zip in the current directory.  It
  128. does this by calling pkzip.  If you do not have pkzip (under that
  129. name) somewhere in your path or in the default directory CleanZip
  130. will need help to work.  If you choose to use a compatible zipping
  131. utility whose name is not pkzip, it must display the file names in
  132. the same way that pkzip does or CleanZip might go crazy and write bad
  133. things in the batch file.  
  134.  
  135. If you use pkzip (or something) by another name you can tell CleanZip
  136. what to use by setting an environment variable.  Of course the
  137. environment variable is called CleanZip.  
  138.  
  139. Example:  set CleanZip=pkzork
  140.  
  141. This example will cause CleanZip to try to use pkzork instead of
  142. pkzip.  This supersedes using pkzip.  You can make CleanZip fail by
  143. telling it to look for a file that does not exist.
  144.  
  145. CleanZip uses the file names DelinZip.bat, ZipChang.bat and
  146. killfile.tmp.  It will not write over these files unless you tell it
  147. to do so.  CleanZip will prompt you if it finds one of them so that
  148. you can stop and look to see if it is worth saving.  If you are sure
  149. that you want to automatically erase these files you can tell
  150. CleanZip to do so by setting an environment variable.  I chose to use
  151. the variable DelinZip.  Set DelinZip equal to anything and it will
  152. erase DelinZip.bat, ZipChang.bat and killfile.tmp.
  153.  
  154. Example:  set DelinZip=frog
  155.  
  156. CleanZip will not prevent global thermonuclear war, but I hope it
  157. will help you a little.  We all hope no insects wave their tiny
  158. antennae in our faces.
  159.  
  160. To avoid confusion please do not change the name that this file uses
  161. when up-loaded to bulletin boards.  
  162.  
  163.                                  WHO?
  164.  
  165. Entire work Copyright 1990 by William C. Serrano,  All Rights Reserved
  166.  
  167.