🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.apps
4 messages
4 total messages Started by Keith Bennett Thu, 12 Sep 1996 00:00
ZIP & PKUNZIP ok together? Questions...
#4904
Author: Keith Bennett
Date: Thu, 12 Sep 1996 00:00
23 lines
1513 bytes

I would like to use ZIP (OS/2) to create a zip file that will be
unzipped either by UNZIP (OS/2) or PKUNZIP (DOS).  

I know that the -k option tells ZIP to create a PKZIP-compatible zip
file.  What exactly does this translate to in terms of file structure?

What about files with extended attributes?  Obviously, PKUNZIP would
ignore EA's, but will their presence confuse it?

I'd like to be able to create a very large zip file containing files
with and without EA's, and have anyone on the network be able to
extract files without EA's.  Do I need to use "-k"?

Thanks for any help.
- Keith

-- 
--------------------------------------------------------------------------
Keith Bennett                             Bennett Business Solutions, Inc.
Silver Spring, MD USA                     OS/2 & DOS Software Development
kbennett@cpcug.org                        (301) 871-7696
Re: ZIP & PKUNZIP ok together? Questions...
#4905
Author: David Charlap
Date: Thu, 12 Sep 1996 00:00
39 lines
2529 bytes
In article <519br6$hr2@cpcug.org>, Keith Bennett <kbennett@cpcug.org> wrote:
>
>I would like to use ZIP (OS/2) to create a zip file that will be
>unzipped either by UNZIP (OS/2) or PKUNZIP (DOS).  

You shouldn't have to do anything special.

>I know that the -k option tells ZIP to create a PKZIP-compatible zip
>file.  What exactly does this translate to in terms of file structure?

I'm not sure about this, but I think the -k option is meant to make a
zip file compatible with the OS/2 version of PKUNZIP.  The PKWare
utilities for OS/2 were left at version 1.x, so they can't extract the
zip-2.0 files that the current PKWare DOS utilities and InfoZip
provide.

>What about files with extended attributes?  Obviously, PKUNZIP would
>ignore EA's, but will their presence confuse it?

I don't think so.  Your best bet is to give it a try and see if it
works.  The PKWare DOS utilities are available at most FTP sites that
have DOS apps.  I usually use ftp.wustl.edu or one of its mirrors.

If for some reason it doesn't work, the InfoZip utilities have been
compiled for DOS and Win32.  They should be available wherever you
find DOS and Windows apps.  You can make them available to your users
on your network.  It will certainly do the "right thing" when
extracting files with EAs.

Furthermore, you'll have a common interface for your DOS, Windows and
OS/2 users, since it will be the same program for everybody.

---------------------+--------------------------------------------------------+
David Charlap        | The contents of this message are not the opinions of   |
david@visix.com      | Visix Software, nor of anyone besides myself.          |
Visix Software, Inc. +------------------------------------------------+-------+
Member of Team-OS/2  | Vote Dogbert for supreme ruler of the universe |
---------------------+------------------------------------------------+
Re: ZIP & PKUNZIP ok together? Questions...
#4906
Author: Peter Moylan
Date: Thu, 12 Sep 1996 00:00
26 lines
1863 bytes
Keith Bennett (kbennett@cpcug.org) wrote:

>I would like to use ZIP (OS/2) to create a zip file that will be
>unzipped either by UNZIP (OS/2) or PKUNZIP (DOS).  

I'm using a mixture of DOS and OS/2 stuff, so I do this all
the time.  I've never had a complaint from the DOS-only
people that they couldn't unzip my zip files, except sometimes
from people using older versions of PKUNZIP.

>I know that the -k option tells ZIP to create a PKZIP-compatible zip
>file.  What exactly does this translate to in terms of file structure?

As far as I know, the only important effect of -k is to
store file names in the 8.3 format.  PKUNZIP wouldn't like
long file names.  As for extended attributes: I'm not quite
sure what happens here, except that PKUNZIP seems to be
quite happy to ignore them.  (Possibly -k is removing the
extended attributes; I've never checked this point.)

--
Peter Moylan                           peter@ee.newcastle.edu.au
       http://www.ee.newcastle.edu.au/users/staff/peter/Moylan.html
OS/2 freeware list at
  http://www.ee.newcastle.edu.au/users/staff/peter/os2/os2info.html
Re: ZIP & PKUNZIP ok together? Questions...
#4903
Author: Cave Newt
Date: Tue, 17 Sep 1996 00:00
32 lines
2181 bytes
David Charlap <david@visix.com> wrote:
>Keith Bennett <kbennett@cpcug.org> wrote:
>
>>I know that the -k option tells ZIP to create a PKZIP-compatible zip
>>file.  What exactly does this translate to in terms of file structure?
>
>I'm not sure about this, but I think the -k option is meant to make a
>zip file compatible with the OS/2 version of PKUNZIP.

Nope.  -k mungs the filenames to 8.3 format and fakes the "OS made by"
byte to indicate DOS FAT.  I'm not sure if it affects EAs or not.  In
general PKUNZIP doesn't mind long filenames, but it will barf if the
file has multiple dots in it, I think.

>>What about files with extended attributes?  Obviously, PKUNZIP would
>>ignore EA's, but will their presence confuse it?

No, EAs are ignored, except when you use PKZIP to update an archive (in
which case it will destroy *all* of the EAs).

>If for some reason it doesn't work, the InfoZip utilities have been
>compiled for DOS and Win32.  They should be available wherever you
>find DOS and Windows apps.  You can make them available to your users
>on your network.  It will certainly do the "right thing" when
>extracting files with EAs.

...and you'll keep your long filenames under Win95 VFAT or NT's NTFS.

--
Greg Roelofs            newt@pobox.com            http://pobox.com/~newt/
Newtware, Info-ZIP, PNG Group, U Chicago, Philips Research, ...        
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads