Microcomputer Applications for Public Administration (PADM 5530)
  Instructions on Using PKZIP and PKUNZIP (DOS)

This instruction page gives brief instructions on using PKZIP and PKUNZIP for compressing and decompressing file respectively.  If you don't have the software, click here to download the self-extractable file.  To use PKZIP and PKUNZIP, you need to open a DOS prompt in Windows environment.  The following gives the syntax of using PKZIP and PKUNZIP and examples of using the software:

 To compress files, use PKZIP as shown in the following:


Usage:  PKZIP [options] zipfile [@list] [files...]
       Simple Usage:   PKZIP zipfile file(s)...
                         |      |      |
Program -----------------       |      |
                                |      |
New zipfile to create ----------       |
File(s) you wish to compress ----------

The above usage is only a very basic example of PKZIP's capability.  The options are as follows:

-a              Add files
-b[drive]       create temp zipfile on alternative drive
-d              Delete files
-e[x,n,f,s,0]   use [eXtra|Normal (default)|Fast|Super fast|NO compression]
-f              Freshen files
-l              display software License agreement
-m[f,u]         Move files [with Freshen | with Update]
-u              Update files
-p|P            store Pathnames|p=recursed into|P=specified & recursed into
-r              Recurse subdirectories
-s[pwd]         Scramble with password [If no pwd is given, prompt for pwd]
-v[b][r][m][t][c] View .ZIP [Brief][Reverse][More][Technical][Comment] sort by
  [d,e,n,o,p,s] [Date|Extension|Name|natural Order(default)|Percentage|Size]
-&[f|l|u        Span disks [Format|format Low density|Unconditional format|
  ul|w|v] Unconditional Low density|Wipe disk|enable dos Verify|
  [s[drive]] Back up entire disk w/ subdirs (-rp) [drive to back up]]
-a+         clear archive Attribute after compression
-c          create/Edit Comments for all files
-C          add Comments for new files only
-i[-]       add files with archive Attribute set [don't turn attribute off]
-j|J<h,r,s> mask|don't mask <Hidden/System/Read-only> files (default=jhrs)
-k          Keep original .ZIP file date
-o          set .ZIP file date to the latest file in .ZIP file
-q          enable ANSI codes in comments
-t[date]    take files NEWER than or EQUAL to date (default=today)
-T[date]    take files OLDER than date (default=today)
-w|W<h,s>   include|exclude <Hidden, System> files (default=Whs)
-x<file>    eXclude specified file
-x@list     eXclude file(s) in specified list file
-z          create or modify .ZIP comment
-!          add authenticity verification to .ZIP file (registered vers only)
-$[drive]   save Volume label in .ZIP file (default = current drive)
-@list      generate list file
-=          open file in compatibility mode (bypass share)
-3          Disable 32-bit instruction usage on 80386 or higher CPU's
-^          Echo the command line
-+          Disable Expanded Memory (EMS) usage
--          Disable UMB/HMA Memory (XMS) usage
-~          Disable Network usage
-)          Disable 32 bit DPMI usage
-(          Use "Slow" MemCopy


Usage:  PKUNZIP [options] zipfile [@list] [files...]

-c[m]             extract files to Console [with More]
-d                restore/create Directory structure stored in .ZIP file
-e[c|d|e|n|p|r|s] Extract files.  Sort by [CRC | Date | Extension | Name
                   | Percentage | Reverse | Size]
-f                Freshen files in destination directory
-j|J<h,r,s>       mask|don't mask <Hidden/System/Readonly> files (def.=jhrs)
-n                extract only Newer files
-o                Overwrite previously existing files
-p[a/b][c][#]     extract to Printer [Asc mode,Bin mode,Com port] [port #]
-q                Enable ANSI comments
-s[pwd]           Decrypt with password [If no pwd is given, prompt for pwd]
-t                Test .ZIP file integrity
-v[b][r][m][t]    View .ZIP [Brief][Reverse][More][Technical] sort by [CRC|
  [c,d,e,n,o,p,s] Date|Extension|Name|natural Order(default)|Percentage|Size]
-x<filespec>      eXclude file(s) from extraction
-$                Restore volume label on destination drive
-@listfile        Generate list file

                -- TROUBLE SHOOTING OPTIONS --

-3      Disable 32-bit instruction usage on 80386 or higher CPU's
-^      Echo the command line
-+      Disable Expanded Memory (EMS) usage
--      Disable UMB/HMA Memory (XMS) usage
-)      Disable 32 bit DPMI usage


1.  To compress file(s) into a zipped file on A disk.


where TEST.ZIP to be stored on the floppy in A drive is the target file after compression.  It contains both TEST1.TXT in the C:\temp\ directory and TEST2.TXT on C: root directory.

2.  To compress multiple files including the subdirectories.


where TEST.ZIP is the compressed file that contains all files with subdirectories under C:\TEMP\ directory.

3. To compress files onto multiple diskettes.


where TEST.ZIP is bigger than one floppy diskette can hold (1.44 mb).  For example, consider you have a 5 mb file.  Even after compression, the zipped file will be more than 2 mb.  You need to use this method to compress the file onto multiple disks.

4. To view contents of zipped file


5. To decompress files:


where TEST.ZIP will be decompressed into C:\TEMP directory.

6.  To decompress files in subdirectory:


where TEST.ZIP is created using the -pr option and contains subdirectories and files.