1821060 Members
2785 Online
109631 Solutions
New Discussion юеВ

problem with PKZIP

 
Sushant Gupta
Occasional Contributor

problem with PKZIP

See the attached file to see the steps I peformed.

My proble is when I am creating a zip with name abc it is created by name "abc".zip and after that I cannot use that file name to remove , move ,copy the file name.
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: problem with PKZIP

Hello,

Can you do with # pkzip abc.zip ? You didnt give .zip extension while creating abc.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: problem with PKZIP

Shalom Sushant,

pkzip creates files with a .zip extension. That is what it does. You can rename the file after its done.

Most Unix machines will be able to interpret and re-inflate the zip files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bharat Katkar
Honored Contributor

Re: problem with PKZIP

Sushant please post ls -la output?
You need to know a lot to actually know how little you know
John Robben
Advisor

Re: problem with PKZIP

Had this same problem.

From pkware support:

The quotes are being used due to the initiation of the PKZIP command line stubs (pkzip and pkunzip). The proper PKZIP command would be as follows:

pkzipc -add -max

==========

Since then, I avoid the "stubs" and call the executable directly:

root@hpd2ts02|[/root/test] > ll
total 0
-rw------- 1 root sys 0 Feb 21 16:24 a.txt
-rw------- 1 root sys 0 Feb 21 16:24 b.txt
-rw------- 1 root sys 0 Feb 21 16:24 c.txt
root@hpd2ts02|[/root/test] > /opt/pkware/pkzip/bin/pkzipc -version
PKZIP(R) Server Version 8 ZIP Compression Utility for HPUX
Copyright (C) 1989-2005 PKWARE, Inc. All Rights Reserved. Registered Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745
Patent Pending

Version 8.40.66
root@hpd2ts02|[/root/test] > /opt/pkware/pkzip/bin/pkzipc -add abc.zip
PKZIP(R) Server Version 8 ZIP Compression Utility for HPUX
Copyright (C) 1989-2005 PKWARE, Inc. All Rights Reserved. Registered Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745
Patent Pending

Using default compression method

Creating .ZIP: abc.zip

Adding File: a.txt Storing ( 0.0%), done.
Adding File: b.txt Storing ( 0.0%), done.
Adding File: c.txt Storing ( 0.0%), done.
root@hpd2ts02|[/root/test] > ll
total 16
-rw------- 1 root sys 0 Feb 21 16:24 a.txt
-rw------- 1 root sys 328 Feb 21 16:25 abc.zip
-rw------- 1 root sys 0 Feb 21 16:24 b.txt
-rw------- 1 root sys 0 Feb 21 16:24 c.txt
root@hpd2ts02|[/root/test] > /opt/pkware/pkzip/bin/pkzipc -view abc.zip
PKZIP(R) Server Version 8 ZIP Compression Utility for HPUX
Copyright (C) 1989-2005 PKWARE, Inc. All Rights Reserved. Registered Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745
Patent Pending

Viewing .ZIP: /root/test/abc.zip

Length Method Size Ratio Date Time CRC-32 Mode Name
------ ------ ---- ----- ---- ---- ------ ---- ----
0B Stored 0B 0.0% 02/21/2006 16:24 00000000 0600 a.txt
0B Stored 0B 0.0% 02/21/2006 16:24 00000000 0600 b.txt
0B Stored 0B 0.0% 02/21/2006 16:24 00000000 0600 c.txt
------ ---- ----- ----
0B 0B 0.0% 3
root@hpd2ts02|[/root/test] > /opt/pkware/pkzip/bin/pkzipc -extract abc.zip
PKZIP(R) Server Version 8 ZIP Compression Utility for HPUX
Copyright (C) 1989-2005 PKWARE, Inc. All Rights Reserved. Registered Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745
Patent Pending

Extracting files from .ZIP: /root/test/abc.zip


PKZIP: (W7) Warning! File: a.txt already exists.
Overwrite (es/o/ll/neer/ename/)? A
Unstoring: a.txt OK
Unstoring: b.txt OK
Unstoring: c.txt OK

Hope this helps,

John