PKZIP problem

From: Jeffrey S. Sharp <jss_at_subatomix.com>
Date: Wed Jan 30 10:39:04 2002

On Wed, 30 Jan 2002, Joe wrote:

> OK all you brains out there. See if you can answer this one. How can I
> make PKZIP include ALL the files on a disk INCLUDING those in sub
> directories and the sub directories themselves.

> Well I've been trying to get either one to work for the last hour and I
> haven't had any luck. -$a: ties to create a .ZIP file by the name of
> -&sa: but that's illegal so it errors out. -rp, -rP, -Pr and -pr all do
> that same thing.

Use the right format for the pkzip command. See below.

> It copies all the files including those in the subdirectories but when
> you use PKUNZIP all the files are placed in one directory therefore
> losing the directory structure and overwritng any files that have same
> names but that came from different subdirectories.

Use the -d option to pkunzip.

> I've tried this with MS DOS PKZIP verion 2.04g and with Winzip but I got
> the same results with both.

C:\>pkzip -rp d:\foo.zip d:\*.*

PKZIP (R) FAST! Create/Update Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745

. 80486 CPU detected.
. XMS version 2.00 detected.
. DPMI version 0.90 detected.
. Using Normal Compression.

Creating ZIP: D:/FOO.ZIP
  Adding: BARBAZ/ Storing ( 0%), done.
  Adding: FOOBAR/ Storing ( 0%), done.
  Adding: GREENBG.GIF Deflating (53%), done.
  Adding: FOOBAR/GREENBG.GIF Deflating (53%), done.

C:\>pkzip -v d:\foo.zip

PKZIP (R) FAST! Create/Update Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745

. 80486 CPU detected.
. XMS version 2.00 detected.
. DPMI version 0.90 detected.

Searching ZIP: D:/FOO.ZIP

 Length Method Size Ratio Date Time CRC-32 Attr Name
 ------ ------ ----- ----- ---- ---- -------- ---- ----
      0 Stored 0 0% 01-30-02 10:31 00000000 --wD BARBAZ/
      0 Stored 0 0% 01-30-02 10:31 00000000 --wD FOOBAR/
     78 DeflatN 37 53% 01-09-02 01:36 70bae4e1 --w- GREENBG.GIF
     78 DeflatN 37 53% 01-09-02 01:36 70bae4e1 --w- FOOBAR/GREENBG.GIF

 ------ ------ --- -------
    156 74 53% 4

C:\>d:

D:\>mkdir quux

D:\>cd quux

D:\quux>pkunzip -d ..\foo.zip

PKUNZIP (R) FAST! Extract Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKUNZIP Reg. U.S. Pat. and Tm. Off.

. 80486 CPU detected.
. XMS version 2.00 detected.
. DPMI version 0.90 detected.

Searching ZIP: ../FOO.ZIP
 Extracting: BARBAZ/
 Extracting: FOOBAR/
  Inflating: GREENBG.GIF
  Inflating: FOOBAR/GREENBG.GIF

--
Jeffrey S. Sharp
jss_at_subatomix.com
Received on Wed Jan 30 2002 - 10:39:04 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:34:59 BST