Share on Facebook Share on Twitter Email
Answers.com

PKZIP

 
TechEncyclopedia:

PKZIP abc's

Following are basic examples for learning how to zip and unzip files using the DOS version of PKZIP and PKUNZIP.

All files can be compressed. The amount of compression depends on the file content. Text and data files compress well. So do many .EXE files. Graphics files vary depending on the graphics format used.

Version Numbers

The current version of PKZIP/PKUNZIP that runs in the DOS or Windows command line is Version 2.50. Files zipped with previous Versions of PKZIP can be unzipped with 2.50. Unlike previous versions, PKZIP 2.50 supports long file names, but only works in Windows 9x, not Windows NT/2000. The version number is displayed on screen as the program starts processing.

Zipping

To compress one or more files, use the PKZIP command. The format of the command is:

           PKZIP    TO    FROM

To zip everything in the current directory, creating a MUCHSTUF.ZIP file, type:

           pkzip muchstuf *.*

To zip everthing in the current directory, except the .BAK files, use the -x (eXclude) switch. There can be NO spaces between the -x and the file description that follows it; for example:

        pkzip muchstuf *.* -x*.bak

To zip all the .DBF files in the current directory, creating a DATA.ZIP file, type:

          pkzip data *.gif

Zipping onto Another Drive

To zip files onto another disk, just add the drive letter; for example:

          pkzip f:data *.gif

To zip selected files, just name them sequentially. Use path names if the files are not in the current directory. For example, presuming SALES.DBF is in the current directory, but CREDIT is not, type:

    pkzip data sales.dbf \123\credit.wk1

Unzipping

To decompress one or more files that have been compressed with PKZIP, use the PKUNZIP command. The format of the command is:

     PKUNZIP    FROM    (selected files)

To unzip DATA.ZIP in the current directory, type:

               pkunzip data

To unzip selected files from another drive into your current directory, just name them sequentially; for example:

   C:\ANYWHERE>pkunzip b:data doc1 doc3

The .ZIP file still remains intact after exploding. Delete it if you have no further use for it.

Creating a Self-extracting Archive

Once a zip file has been created, it can be used to create a self-extracting archive with the ZIP2EXE.EXE utility. It combines PKUNZIP.EXE with the .ZIP file creating a new executable program that unzips automatically when you run it.

For example, to create the DATA.EXE self-extracting archive from the DATA.ZIP file, type:

             zip2exe data

To run DATA.EXE, simply type the program name like you would any executable file:

                 data

To extract selected files from a self-extracting archive on a floppy, just name the files sequentially. For example, to pull out DOC5 and DOC9 from DOCUMENT.EXE on the B: drive into the current directory, type:

      C:\ANYWHERE>b:document doc5 doc9

Updating Files

You can use PKZIP to update only files that have been changed. For example, to update all the .DOC files on a floppy archive called DOCUMENT.ZIP from the current directory, type the following:

       pkzip b:document *.doc -u -bc:

The -u switch means zip only files that have a more recent date than the ones on the target drive, in this case the floppy drive B:. The -bc: switch indicates that the C: drive should be used if extra room is required to do the compressing. This is a good safeguard if you are zipping files onto floppies, otherwise the operation will stop if there is not enough room.

In the above example, new .DOC files that do not already exist in the DOCUMENT.ZIP file would also be added. To update only files that already exist in the zip file without adding new ones, use the -f (Freshen) switch instead of the -u (Update) switch.

Adding Files

You can add one or more files to an existing zip file. For example, to add the file LETTER.DOC to the DOCUMENT.ZIP file, type:

          pkzip document letter.doc

Deleting Files

You can delete one or more files from an existing zip file by using the -d switch. For example, to delete LETTER.DOC from DOCUMENT.ZIP, type:

         pkzip document letter.doc -d

Reviewing the Status of Zipped Files

To see how much a zipped archive has been compressed, use the /v switch. For example, to review the status of all the files that have been zipped in the DOCS archive, type:

                pkzip docs /v

Zipping Subdirectories

You can zip files and subdirectories attached to the current directory. When you unzip them, the subdirectories will be created automatically.

For example, assume two subdirectories named JACK and JILL in the root directory. To zip all the files in JACK and JILL, use the upper case -P switch:

      C:\>pkzip new jack\*.* jill\*.* -P

When you unzip NEW.ZIP using the -d switch, the JACK and JILL subdirectories will be created, if they do not exist, subordinate to the directory you are currently in. For example, if you are in the DATA directory, \DATA\JACK and \DATA\JILL will be created. Note the following syntax:

     C:\DATA>pkunzip a:new -d

Download Computer Desktop Encyclopedia to your PC, iPhone or Android.

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
PKZIP
Pkzip-2.04g-dos.png
PKZIP 2.04g for DOS, circa 1993
Original author(s) Phil Katz
Developer(s) PKWARE Inc
Type archiving and data compression tool
Website http://www.pkware.com/

PKZIP is an archiving tool originally written by Phil Katz and marketed by his company PKWARE, Inc. The common "PK" prefix used in both PKZIP and PKWARE stands for "Phil Katz".

Contents

History

File compression routines date back to at least the 1960s: IBM had a compression program called SQUOZE that was commonly used to pack programs on the 709 and 7090 mainframes as part of the SHARE operating system.

By the 1970s file archiving programs were distributed as standard utilities with operating systems. They include the Unix utilities ar, shar, and tar. These utilities were designed to gather a number of separate files into a single archive file for easier copying and distribution. These archives can optionally be passed though a stream compressor utility, such as compress and others.

Other archivers also appeared during the 1980s, including Rahul Dhesi's ZOO, Dean W. Cooper's DWC, LHarc by Haruhiko Okomura and Haruyasu Yoshizaki and ARJ which stands for "Archived by Robert Jung".

The development of PKZIP was first announced in the file SOFTDEV.DOC from within the PKPAK 3.61 package, stating it would develop a new and yet unnamed compression program. The announcement had been made following the ARC lawsuit between System Enhancement Associates (SEA), Inc. and PKWARE, Inc. Although SEA won the suit, it lost the compression war, as the user base migrated to PKZIP as the compressor of choice. Led by BBS Sysops who refused to accept or offer files compressed as .ARC files, users began recompressing any old archives that were currently stored in .ARC format into .ZIP files.

The first version was released in 1989 as a DOS command-line tool, distributed under shareware model with a $25US registration fee ($47US with manual).

Version history

PKZIP 0.8 (1989-01-11) initial version

PKZIP 0.9 (1989-02-10) supported Reducing algorithm (from SCRNCH by Graeme McRae)[1] with 4 compression settings and shrinking. In addition to PKZIP and PKUNZIP, it also included ZIP2EXE, which required an external self-extracting executable header created by MAKESFX from the PKZIP executable package.

PKZIP 0.92 (1989-03-06): In addition to bug fixes, PKZIP included an option to automatically choose the best compression method for each file. New tools included with PKZIP include PKZipFix.

PKZIP 1.01 (1989-07-21) added Implode compression, while Reduced files can only be extracted from ZIP archive. Imploding was chosen based on the characteristics of the file being compressed.[2] New utility included Thomas Atkinson's REZIP conversion utility (part of ZIP-KIT). PKZIP's default compression behavior was changed from fastest (Shrink) to best (Implode). Supported platforms include OS/2, DOS.

PKZIP 1.02 (1989-10-01) includes new utility BIOSFIX.COM, which preserved the entire 80386 register set during any mode switches via INT 15H. OS/2 version added ZIP2EXE and 2 self-extracting archive headers.

PKZIP 1.10 (1990-03-15): New features included Authenticity Verification, "mini" PKSFX self-extracting module, integrating self-extracting module into ZIP2EXE, ability to save & restore volume labels. Imploding was up to 5X faster and compression ratio was improved over 1.02. EAX register was always saved on 80386 or above CPU. Removed tools included BIOSFIX, REZIP, MAKESFX.

In 1993, PKWARE released PKZIP 2.0. This new version dispensed with the miscellaneous compression methods of PKZIP 1.x and replaced them with a single new compression method which Katz called "deflating" (although several compression levels of deflating were provided by the program). The resulting file format has since become ubiquitous on Microsoft Windows and on the Internet - almost all files with the .ZIP (or .zip) extension are in PKZIP 2.x format, and utilities to read and write these files are available on all common platforms. PKZIP 2.x also supported spanning archives to multiple disk, which simply split the files into multiple pieces, and using volume label on each drive to differentiate each other. A new Authenticity Verification (AV) signature format was used. Registered version included PKUNZJR, PK Safe ANSI, PKCFG utilities.

PKZIP 2.06 was released in 1994. It was a version of PKZIP 2.04g licensed to IBM.[3]

PKZIP 2.50 (1998-04-15) was the first version released for Windows 3.1, 95, NT platforms. DOS version of PKZIP 2.50 was released on 1999-03-01, as its final MS-DOS product. PKZIP 2.50 supported long file names on all builds, and Deflate64 extraction. DCL Implode extraction was supported on non-DOS ports. A new command-line product was introduced in Windows 95, OS/2, UNIX platforms, called "PKZIP Command Line" (later expanded to "PKZIP Server"), which featured new command line syntax.

PKZIP 2.6 was the last version to support Windows 3.1 and Windows NT for the Alpha and PowerPC platforms.

PKZIP 2.70 added Email MAPI (i.e. Send To) Support. Registered version included creation of configurable self-extracted archives, added Authenticity Verification (AV) Information. Distribution Licensed versions included enhanced self-extractors. Professional Distribution Licensed version could create Self-Extracting Patch Files, and includes Self-Extractors for Several New Platforms.

PKZIP 4.0 was an updated version of PKZIP 2.7. Version 3 was skipped as a result of PKZIP 3.0 trojan.[4] It supported Deflate64 and DCL Implode compression, and the use of X.509 v3 certificate-based authentication.,[5] creation of Span or Split large .ZIP archives. Old PKZIP command line conversion tools were introduced.

On 2001-08-21, PKWARE announced the availability of PKZIP 4.5.[6] PKZIP 4.5 included ZIP64 archives support, which allowed more than 65535 files per ZIP archives, and storing files larger than 4 gigabytes into .ZIP archive. A version called PKZIP Suite 4.5 also included PKZIP Command Line 4.5, PKZIP Explorer 1.5, PKZIP Attachments 1.1, and PKZIP Plug-In 1.0.

PKZIP 5.0 was announced in 2002,[7] which introduced Strong Encryption Specification (SES) for the Professional version of the product, which initially included DES, 3DES, RC2, RC4 encryption formats, and the use of using X.509 v3 certificate-based encryption.

PKZIP 6.0 was released in 2003, which supports BZip2 (based on Burrows-Wheeler transform) compression, with Professional Edition supporting 256-bit AES.[8]

PKZIP 7.0 changed SES to use non-OAEP key wrapping. Support of creating AV authenticity verification archives was dropped. PKZIP could now create archives of the following types: ZIP, BZIP2, GZIP, TAR, UUEncoded, XXEncoded.

PKZIP 8.0 was released on 2004-04-27.[9] In addition, PKWARE renamed its PKZip Professional to SecureZIP.[10] Creation of ZIP archives with encrypted headers was available.

PKZIP 9.0 was the first version to unofficially support Windows Vista (as administrator).[11] Creation of RC2, DES-encrypted ZIP archives are dropped.

PKZIP 10 Enterprise Edition and SecureZIP 10 were released on i5/OS. It offered the ability to create ZIP64 archives for the target platform.[12] Desktop PKZIP version was no longer developed beyond version 9.

On 2007-04-24, PKWARE announced the release of SecureZIP Standard Version 11 as freeware, available on www.securezip.com.[13] SecureZIP comes with SecureZIP Standard (SecureZIP for Windows Desktop), SecureZIP Enterprise, SecureZIP Command Line Interface, SecureZIP for Server, SecureZIP for Server with Directory Integration Module. At this point, only PKZIP for server remained in development. It added UTF-8 file name support, secure exchange of emails and attachments directly from Outlook or Office applications.

SecureZIP 11.2 added SHA-2 hashing (SHA-256, SHA-384, SHA-512 supported), FIPS-140 security mode.[14]

SecureZIP 12 was released on 2008-2.[15]

SecureZIP 12.1 was released on 2008-06-03[16] Freeware SecureZIP includes a free digital certificate and inclusion in the SecureZIP Global Directory. The certificate was supplied by Comodo.[17] Registration key was changed so keys from versions 8 or earlier no longer work.

SecureZIP 12.2 introduced SecureZIP Express, while SecureZIP Standard became shareware. SecureZIP Express did not include the Microsoft Office integration, but the registration cost was reduced to $19.95. Registration key was changed so previous keys no longer work.

SecureZIP 12.3 added support of PPMd, LZMA compressions. Desktop version added Federal Desktop Core Configuration compatibility, 64-bit OS support, ability to rename a ZIP attachment when sending email, improved support for Windows Vista dialogs. Enterprise version added expanded support for setting policy for 64-bit systems.

SecureZIP 12.4 was released on 2009-12-14 now supports operation on Windows 7, option to switch to "Office fluent"-style ribbon GUI, 64-bit edition for use with 64-bit versions of Windows Vista and Windows 7.

SecureZip 12.5 (released on 2010-05-12) added integration with Microsoft Office 2010, custom alternative extensions for mailed .ZIP archives, extracting WavPack files within ZIP archives, extracting files from archives created on IBM z/OS using hardware compression tools, changes in FIPS Mode to support NIST algorithm changes affective end of 2010.[18]

SecureZip 14 (released on 2011-10) added support to create and extract OpenPGP files, support for digital time stamping of signed archives, support for processors with AES-NI instruction for faster AES encryption, ability to extract 7-Zip files and CD/DVD Data Image files, new Auto Select View, ability to preserve Zone Identifier information in downloaded files , support to add and extract NTFS alternate streams, added file search logic.

.ZIP file format

To help ensure the interoperability of the ZIP format, Phil Katz published the original .ZIP File Format Specification in the APPNOTE.TXT documentation file. PKWARE continued to maintain this document and periodically published updates. Originally only bundled with registered versions of PKZIP, it was later available on the PKWARE site.

The specification has its own version number, which does not necessarily correspond to the PKZIP version numbers, especially with PKZIP 6 or later. At various times, PKWARE adds preliminary features that allows PKZIP products to extract archives using advanced features, but PKZIP products that create such archives won't be available until the next major release.

Compatibility

Although popular at the time, ZIP archives utilizing PKZIP 1.0 compression methods are now rare, and many modern unzip tools are unable to handle "shrinking" and "reducing", although "imploding" is usually supported.

Patents

Shrinking uses dynamic LZW, on which Unisys held patents. A patent for the Reduce Algorithm had also been filed on June 19, 1984, long before PKZIP was produced.[19]

Other products

PKWARE also used its PKZIP standards on following products:

  • PartnerLink (including SecureZIP/PartnerLink, SecureZIP Partner)
  • PKZIP Explorer

See also

References

External links


 
 
Related topics:
how to compress files (technology)
zipping (technology)
PKZIP abc's (technology)

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

TechEncyclopedia. THIS DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2012 The Computer Language Company Inc.  All rights reserved.  Read more
Wikipedia on Answers.com. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article PKZIP Read more

Follow us
Facebook Twitter
YouTube

Mentioned in

» More» More