home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- Documentation for ZIP2ZIP v3.1
- Release of 5/31/93
- (Copyright 1993)
-
- ZIP2ZI31.ZIP is a set of DOS batch files intended to be used for
- converting .ZIP files created under PKZIP v. 1.10 TO v 2.04G,
- utilizing maximum compression. Now Supports ZIP files within ZIP
- files, as long as they are not contained on a .ZIP's Path structure.
-
- Briefly here's what it does...
-
- o Accepts Input of D:\path\, 1 or WildCard Zip File(s) To
- Convert. Not necessary to be in the source files's dir.
- o Preserves Volume Label, Date and Attributes of Source.
- o Preserves Sources's Internal Path Structure, If Any.
- o Converts ZIP To Maximum Compression Using Your
- PKZIP 2.04g
- o Writes a Comment To The Converted ZIP (Modifiable)
- o Skips ZIP's That Already Have a Matching Comment.
- o Keeps a Detailed LogFile of Activity For Review.
- Failed Conversions are indicated. Beginning/Ending
- Time/Size.
- o Can Be Run Stand Alone or In a BBS "EVENT" with minor edit.
-
-
- Zip2Zi31.Zip contains:
-
- ZIP2ZIP.DOC (This File)
- ZIP2-001.BAT Preliminary First Step System Checker.
- QUICK START
- ZIP2-OK2.BAT After Checking a Sub Directory Out, Run to
- Clear Environment Variables In Case Of a
- Cancel.
-
- ZIP2ZIP.BAT Main Starting Batch File
- ZIP2ZIPA.BAT Called by ZIP2ZIP To Evaluate Available
- Environment Space.
- ZIP2ZIPB.BAT Called By ZIP2ZIP To Create a Level 1 Subdir
- (Z_B) To UnZip Into.
- ZIP2ZIPC.BAT Called By Above To Accept Files And a
- ZIPinZIP.
- ZIP2ZIPD.BAT Called By Above To Accept Files From the
- ZIPinZIPinZIP, if any.
- ZIP2ZMOP.BAT Called by Most To Clean Up Work Sub Dirs
- And/Or Read Only Files.
- ZIP2-SDE.BAT Called By Most To Check Existence Of Reserved
- Work SubDirectoy.
- ZIP2-FSZ.BAT File Logic Tester And Time And Date Capture.
- ZIP2-ZNP.BAT Checks Target .ZIP For .ZIP Files Within It's
- Path.
- ZIPRDZ_B.BAT Powerful Delete Of SubDir Z_B And It's Sub
- Directories Off The Current SubDirectory.
- Used For Your Initial Testing Only.
- FILE_ID.DIZ Description.
-
- All of the above files were AV stamped Boone-Docks for your protect-
- ion. If not seen, (PKUNZIP -t) it's imperative that you satisfy your-
- self that everything works ok by doing extensive retests. And do
- BACK UP FIRST.
-
- ZIP2ZIP.BAT has been tested under MS DOS 5 & DR DOS 5 & 6.0.
- MUST USE PKZIP 2.04g WHEN RUNNING THESE BATCH FILES !!!
- AND A DOS THAT HAS THE ATTRIB.EXE -r -h -s /S SWITCH CAPABILITY
-
- STARTUP:
-
- To use the files within ZIP2ZI30.ZIP unzip them into:
-
- 1. Any subdirectory that will be used as "home base"
- from which the batch files will be run. If not on the
- path you must then be in that subdirectory to reference
- the target drive\path\ files. A RamDrive Is a _good_
- area to place these files. Many small files are created
- under these batch files. A RamDrive would save mechanical
- wear as well as disk fragmentation. It would be a very
- good idea to also copy your DOS's Attrib.exe, Find.Exe
- and Comp.Exe (or .Com) there. Then you'll just have hard
- disk activity on the target's drive.
-
- 2. A sub directory that is in your Path.
-
- For a Quick Start..Run ZIP2-001, Then ZIP2-OK2.. following the
- Prompts. Set PKTMP (if wanted). Run ZIP2ZIP (No Parm 1)..
- Otherwise PLEASE Read on...
-
- PKxxZIP must be in the path or in #1 above. The proper version is
- checked for. Reserved internal file names and environment variable
- names are existence tested. Certain environment variables and file-
- names are reserved for exclusive use of these batch files. They are:
-
- RESERVED NAMES
-
- Environment Variables: ZTIME, ZDATE, ZNAME, FSIZE, CNZL,
- EVCHK40, EVCHK30, SAFETY, DONE_B,
- DONE_C.
-
- Reserved SubDirectory: Z_B Must not exist as a SubDir immediat-
- ely off the Target SubDirectory.
-
- Reserved FileNames: ZIP2ZIP.LOG, ZIP2ZIP.$$$, ZIP2ZIP.CVT,
- EV0.FLG, ZIP2-FSZ. ZIP2-FSZ.$$$,
- TEMP_$$$.BAT, #2DO_B., #2DO_C., #DONE_B.
- #DONE_C., #AT_B., #AT_C..
- ZIP2ZIP.LOG ZIP2ZIP.$$$ and ZIP2ZIP.CVT
- are written in the Target SubDir.
- Others are written to the default SubDir
- from which ZIP2ZIP was launched.
-
- ZIP2-001.BAT checks for their existence. Resolve any conflicts.
- Clear the variables and files, if any, with ZIP2-OK2.BAT.
-
- ZIP2ZIP.LOG will be written in the target's subdirectory for
- handy viewing after the conversion session. Move files based on
- your needs. The ZIP2ZIP.CVT file is available to use as a move list.
- Identify Zips in the Zip File's path structure. Do these manually in
- a safe sub directory later by unzipping (-d -Jhrs) the primary to
- it's SubDirs and then using this program on each until completed.
- See ZIP2ZIP.LOG for the reasons that a .ZIP failed the conversion.
-
- RUNNING: Use the below syntax, after reading the next few paragraphs.
- Especially the 16 character max Target length. See Testing:
-
- Enter the Target_Drive:\SubDir\ containing the .ZIP files to be
- converted to Pkzip 2.0g Max compression.
- Enter:
-
-
- ┌──See Below Testing: about Length of 16.
- │ /── Don't forget the trailing "\"
- ZIP2ZIP D:\TARGET\PATH\ ZIPNAME <- NO .ZIP EXTENSION, Just the Name
- │ ├─ Enter * to Do All *.ZIP's in the Sub Dir
- │ └─ Or WildCards Within a "Family".ZIP
- │
- ├──── Substitute your SubDirectory Structure. Drive Letter
- └──── D: Optional Unless Target is on another drive
- In other words, std DOS syntax except for the "space"
- between \path\ filename
-
- OPTIONS:
-
- Check the PKZIP and PKUNZIP -options within ZIP2ZIP?.BAT to be sure
- they fit your needs.
-
- Compression is -ex (Maximum). For Failed conversions PKZIP -e0 is
- used for MAX SPEED clean up in ZIP2ZMOP.BAT.
-
- I elected to keep the original date for the resulting .ZIP file,
- (-k option ). You might want to change it to the newest file within
- the set. -o option).
-
- BBS event users might want to change the -options to suit a
- different comment file inclusion. Or add: (In ZIP2ZIPB, C, & D.BAT)
- PKZIP %2 -k -d @D:\YOUR\PATH\BBS-ADD.LST line (after the initial
- PKUNZIP %2 -t test) to get rid of those pesky little BBS-ADD files.
- Or anything else "as long as we are here", etc.
-
- GENERAL:
-
- DOS has a Quirk in the For %%f IN ( *.EXT ) Do Cmd %%f. If a single
- item is present in a "*" (or wildcard list) DOS will DO the operat-
- ion twice. If there are 3 or more files in the list DOS will do the
- list, then re do #1 and #2. I've precluded this with pseudo
- counter code, but still DOS may "lose" it's place and have to re-
- read a prior processed file. The imbedded comment will insure one
- pass only. Chech a log or two.
-
- OLDER DOS: (3.3 and others)
-
- The FIND cmd is case sensitive in MS DOS. COMP.EXE yeilds
- different case in older versions (ok vs OK) DR DOS is not
- case sensitive in it's default. So for older versions that
- report "ok" when 2 files compare equal, change the case
- FIND "OK" > to FIND "ok" > in ZIP2ZIPC.BAT and ZIP2ZIPD.BAT.
- (DR and MS DOS have incompatible FIND /x swithes.)
-
- This Is IMPORTANT. Older DOS versions (3.31) have no support
- for a cmd of ATTRIB C:\sd\*.* -r -h -s /S. Syntax error.
- Halts. Two options exist. 1. Upgrade the DOS, 2. Move the
- offending file to skip it. No damage will be done with #2,
- just a bother to restart and skip over firsts. A third
- option of modifying the PKUNZIP options to -jhrs is NOT
- recommended as the conversion won't result in a true copy.
-
-
- TESTING:
-
- Run ZIP2-001.BAT to check for reserved names. Resolve any conflicts.
- Clear the variables and files, if any, with ZIP2-OK2.BAT.
-
- Copy a few .ZIP files to a work directory (Ram Drive Ok) to
- test out the results on your system. It's important that the Target
- Path not be extremely long. DOS has a line limit of 127 bytes. The
- Target-Path, FileName and the command within the FOR..DO..cmd can
- exhaust the 127 limit. Better to use short dir names. I would
- consider a total length of about 16 characters for the Target
- Path Name as maximum. File names and paths within the .ZIP WILL
- affect this. A zip file name of 8 characteres, containing an
- internal path structure of three levels of 8 characters each and
- each level containg a .zip of 8 characters long will fail with
- a Target Path Directory of 17 characters. Worst scenario.
-
- I suggest using a new test sub directory for a few files. Using
- PKZIP v 1.10, create zips in zips. Test. Create a zip file in a
- sub directory. PKzip from the "test" root with -mrp. Make copies
- for later use (copy *.zip *.110) Test the zip files. Run using
- the * for parameter 2 :
-
- ZIP2ZIP D:\YOUR_SD\ *
- (or ZIP2ZIP D:\YOUR_SD\ AFAM?LY? )
-
- Compare the files to the ZIP2ZIP.LOG. All activity will be shown.
- PKUNZIP -vt (or -vb) the converted files etc. Do anything else to
- properly check out a VERY powerful utility, as these batch files
- are.
-
- I've already done all of this and more, but maybe I missed some
- condition? I created test files with problems at every level. The
- resulting log could be stepped thru. Nice. But all the zips in a
- package had to be tested. I changed it to stop processing when the
- first failure occurred, report it and move on. So when these are
- processed manually you may find other errors in a deeper level.
-
-
- Oh..and if you need to run the batch files again against those
- .zip files already processed, do this. Go to the subdirectory
- containing the .zips and CAREFULLY enter from the cmd line:
-
- ECHO.>CLR.CMT
- FOR %F IN (*.ZIP) DO PKZIP %F -K -Z<CLR.CMT
- DEL CLR.CMT
-
- No batch file to do this has been included. USE the -K option!
-
- USING:
-
- And lastly, after you have REALLY satisfied yourself that
- ZIP2ZIP.BAT does everything reliably SYSOPS can run it in their
- "EVENT". If The Screens are too BUSY for your taste, Rem out a
- few Echo statements. That's the beauty of modifiable batch files.
-
- Other std. disclaimers apply. Be Careful. As with any software that
- modifies your hard drive, BACK UP FIRST. At LEAST the Production
- sub directory. I disclaim any responsibility for any resulting
- damage to your system. I have used it on my system extensively.
-
- Please drop me a note if you have found the batch files to be of
- benefit. If you feel some payment is in order, please send a
- contribution to The American Cancer Society, or any other charity
- of your choice.
-
- Do not modify these batch files and re-distribute them.
-
- Robert Boone
- P.O. Box 11100
- Houston, TX 77293
-
- CoSysop: Ye Olde Bailey BBS 713.520.1569
- Compuserve Infomation Services 70070,511
- UseNet/InterNet robert.boone@yob.sccsi.com
-