Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
CluelessInSeattl(R)

Seattle, USA,
08.04.2013, 16:05
 

PKZIP 2.04 Error Message: What did I do wrong? (Users)

Hi!

I'm trying to use PKZIP 2.04 for DOS to zip up the files in a directory and sub-directory on a laptop running XP Home.

I'm using the command prompt in the DOS box.

Here's what I entered at the command prompt:

PKZIP A:\ws4t1910.ZIP d:\wp\ws4\*.* -&RP

PKZIP proceeds to display the usual messages showing the filenames as it "deflates" them. But then it gives me this error:

PKZIP: (E01) can't create: ./PKZIPTMP.A
'RP' is not recognized as an internal or external command,
operable program or batch file.


I'm following the instructions I found at:

Using the PKZIP/PKUNZIP utilities

Can you spot the typo or error in what I typed at the command prompt?

---
Will in Seattle
a.k.a. "Clueless"
Running MS-DOS 6.21

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
09.04.2013, 00:30

@ CluelessInSeattl

PKZIP 2.04 Error Message: What did I do wrong?

> Hi!
>
> I'm trying to use PKZIP 2.04 for DOS to zip up the files in a directory and
> sub-directory on a laptop running XP Home.
>
> I'm using the command prompt in the DOS box.
>
> Here's what I entered at the command prompt:
>
> PKZIP A:\ws4t1910.ZIP d:\wp\ws4\*.* -&RP
>
> PKZIP proceeds to display the usual messages showing the filenames as it
> "deflates" them. But then it gives me this error:
>
> PKZIP: (E01) can't create: ./PKZIPTMP.A
> 'RP' is not recognized as an internal or external command,
> operable program or batch file.
>

>
> I'm following the instructions I found at:
>
> Using
> the PKZIP/PKUNZIP utilities
>
> Can you spot the typo or error in what I typed at the command prompt?


Try this....

PKZIP -&rP -ex A:\ws4t1910.ZIP d:\wp\ws4\*.*

& == span diskettes as needed

r == (lowercase r), recurse into subdirs

P == (UPPERCASE P), recurse into the specified directory

ex == use extra compression


BTW,

To see all of the most common options....

pkzip.exe<enter>

Then hit 2, 3 or 4 for additional pages of options.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
18.04.2013, 03:36

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

> > Hi!
> >
> > I'm trying to use PKZIP 2.04 for DOS to zip up the files in a directory
> and
> > sub-directory on a laptop running XP Home.
> >
> > I'm using the command prompt in the DOS box.
> >
> > Here's what I entered at the command prompt:
> >
> > PKZIP A:\ws4t1910.ZIP d:\wp\ws4\*.* -&RP
> >
> > PKZIP proceeds to display the usual messages showing the filenames as it
> > "deflates" them. But then it gives me this error:
> >
> > PKZIP: (E01) can't create: ./PKZIPTMP.A
> > 'RP' is not recognized as an internal or external command,
> > operable program or batch file.
> >

> >
> > I'm following the instructions I found at:
> >
> >
> Using
> > the PKZIP/PKUNZIP utilities
> >
> > Can you spot the typo or error in what I typed at the command prompt?
>
>
> Try this....
>
> PKZIP -&rP -ex A:\ws4t1910.ZIP d:\wp\ws4\*.*
>
> & == span diskettes as needed
>
> r == (lowercase r), recurse into subdirs
>
> P == (UPPERCASE P), recurse into the specified directory
>
> ex == use extra compression
>
>
> BTW,
>
> To see all of the most common options....
>
> pkzip.exe<enter>
>
> Then hit 2, 3 or 4 for additional pages of options.


Have sent the following message to IBM.....

_________

On this page....

http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=DJON-3G2TAK

There exist quite a few typographic errors.

All of the command line options for pkzip.exe & pkunzip.exe
are case sensitive and virtually all of them are required to be in lowercase.

All of the examples given on the above page have all of the command line
options shown as UPPERCASE which in almost all cases will not work due
to that particular command line option being required as lowercase.

_________

---
--
http://glennmcc.org/

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
19.04.2013, 00:34
(edited by glennmcc, 19.04.2013, 01:11)

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

WOW !!!

That was quick on their automated reply. :)

Mail:IBM`S REPLY... Arachne v1.97
file:C:\ARACHNE\MAIL\B1707327.CNM Thu, 18 Apr 2013 18:27:28
________________________________________________________________________________
From: askibm@*********
To: GLENNMCC@**********
Date: Wed, 17 Apr 2013 22:46:15 -0600
Subject:IBM`S REPLY...
==============================================================================
Dear Mr. McCorkle,

Thank you for contacting IBM.

We are in receipt of your e-mail regarding your
feedback on the IBM Web site.

We apologize for any inconvenience you may have
experienced.

Please be advised that we have forwarded your e-mail
to the appropriate team for further review.

Thank you for visiting our site and contacting IBM.

Rohit Sharma
Electronic Response Center

CALLOWN Log Number: 4820556

-------------------------------------------------------------------------

Date: Thu, 18 Apr 2013 01:32:32 +0000
To: askibm@********, ibmweb1@********
From: webmaste@*******
Reply-to: glennmcc@***********
Subject: Web site feedback: Contact IBM - typos on web page...

-------------------------------------------------------------
Location_Routing: contactibm (O952857A65628K58)
ERMSMailFormat: contactibm
Date: Thu, 18 Apr 2013 01:32:32 +0000

-- Request information --------------------------------------

User-agent: xChaos_Arachne (DOS /5.1.97;UE14)
Country-code:
Referred-from: http://www.ibm.com

==============================================================================
Arachne Insight 4.7;ML, GNUpyright (G)1997-2000 Arachne Labs
(now being maintained by the Arachne Development team)

---
--
http://glennmcc.org/

roytam(R)

19.04.2013, 12:05

@ CluelessInSeattl

PKZIP 2.04 Error Message: What did I do wrong?

> Hi!
>
> I'm trying to use PKZIP 2.04 for DOS to zip up the files in a directory and
> sub-directory on a laptop running XP Home.
>
> I'm using the command prompt in the DOS box.
>
> Here's what I entered at the command prompt:
>
> PKZIP A:\ws4t1910.ZIP d:\wp\ws4\*.* -&RP
>
> PKZIP proceeds to display the usual messages showing the filenames as it
> "deflates" them. But then it gives me this error:
>
> PKZIP: (E01) can't create: ./PKZIPTMP.A
> 'RP' is not recognized as an internal or external command,
> operable program or batch file.
>

>
> I'm following the instructions I found at:
>
> Using
> the PKZIP/PKUNZIP utilities
>
> Can you spot the typo or error in what I typed at the command prompt?

cmd.exe/command.com in NT interprets '&' like ';' in POSIX shells, which cause this error.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
21.04.2013, 01:49

@ roytam

PKZIP 2.04 Error Message: What did I do wrong?

> > Hi!
> >
> > I'm trying to use PKZIP 2.04 for DOS to zip up the files in a directory
> and
> > sub-directory on a laptop running XP Home.
> >
> > I'm using the command prompt in the DOS box.
> >
> > Here's what I entered at the command prompt:
> >
> > PKZIP A:\ws4t1910.ZIP d:\wp\ws4\*.* -&RP
> >
> > PKZIP proceeds to display the usual messages showing the filenames as it
> > "deflates" them. But then it gives me this error:
> >
> > PKZIP: (E01) can't create: ./PKZIPTMP.A
> > 'RP' is not recognized as an internal or external command,
> > operable program or batch file.
> >

> >
> > I'm following the instructions I found at:
> >
> >
> Using
> > the PKZIP/PKUNZIP utilities
> >
> > Can you spot the typo or error in what I typed at the command prompt?
>
> cmd.exe/command.com in NT interprets '&' like ';' in POSIX shells, which
> cause this error.

roytam,

Good catch.

I was on the wrong track with Case Sensitivity of the command line options.

So, unless there's a work-around for the '&',
it appears that DOS pkzip will not work in the NTVDM for spanning diskettes.

---
--
http://glennmcc.org/

rr(R)

Homepage E-mail

Berlin, Germany,
21.04.2013, 20:38

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

> So, unless there's a work-around for the '&',
> it appears that DOS pkzip will not work in the NTVDM for spanning
> diskettes.

Quoting Microsoft Windows XP - Command shell overview: The ampersand (&), pipe (|), and parentheses ( ) are special characters that must be preceded by the escape character (^) or quotation marks when you pass them as arguments.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
22.04.2013, 04:45

@ rr

PKZIP 2.04 Error Message: What did I do wrong?

> > So, unless there's a work-around for the '&',
> > it appears that DOS pkzip will not work in the NTVDM for spanning
> > diskettes.
>
> Quoting
> Microsoft
> Windows XP - Command shell overview: The ampersand (&), pipe (|),
> and parentheses ( ) are special characters that must be preceded by the
> escape character (^) or quotation marks when you pass them as
> arguments.



Ah ha... so, the solution seems to be....

pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* -^&rP

or

pkzip.exe "a:\ws4t1910.zip d:\wp\ws4\*.* -&rP"

---
--
http://glennmcc.org/

roytam(R)

22.04.2013, 10:22

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

> > > So, unless there's a work-around for the '&',
> > > it appears that DOS pkzip will not work in the NTVDM for spanning
> > > diskettes.
> >
> > Quoting
> >
> Microsoft
> > Windows XP - Command shell overview: The ampersand (&), pipe
> (|),
> > and parentheses ( ) are special characters that must be preceded by the
> > escape character (^) or quotation marks when you pass them as
> > arguments.

>
>
> Ah ha... so, the solution seems to be....
>
> pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* -^&rP
>
> or

No "or" here. ;)

>
> pkzip.exe "a:\ws4t1910.zip d:\wp\ws4\*.* -&rP"

This will make argv[1]=a:\ws4t1910.zip d:\wp\ws4\*.* -&rP
i.e. the whole thing in quotation, which most programs dislike.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
23.04.2013, 00:20

@ roytam

PKZIP 2.04 Error Message: What did I do wrong?

> > > > So, unless there's a work-around for the '&',
> > > > it appears that DOS pkzip will not work in the NTVDM for spanning
> > > > diskettes.
> > >
> > > Quoting
> > >
> >
> Microsoft
> > > Windows XP - Command shell overview: The ampersand (&), pipe
> > (|),
> > > and parentheses ( ) are special characters that must be preceded by
> the
> > > escape character (^) or quotation marks when you pass them as
> > > arguments.

> >
> >
> > Ah ha... so, the solution seems to be....
> >
> > pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* -^&rP
> >
> > or
>
> No "or" here. ;)
>
> >
> > pkzip.exe "a:\ws4t1910.zip d:\wp\ws4\*.* -&rP"
>
> This will make argv[1]=a:\ws4t1910.zip d:\wp\ws4\*.* -&rP
> i.e. the whole thing in quotation, which most programs dislike.

OK then, _just_ the "-&rP" portion in quotes like so ?

pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* "-&rP"

---
--
http://glennmcc.org/

roytam(R)

23.04.2013, 10:08

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

> > > > > So, unless there's a work-around for the '&',
> > > > > it appears that DOS pkzip will not work in the NTVDM for spanning
> > > > > diskettes.
> > > >
> > > > Quoting
> > > >
> > >
> >
> Microsoft
> > > > Windows XP - Command shell overview: The ampersand (&),
> pipe
> > > (|),
> > > > and parentheses ( ) are special characters that must be preceded by
> > the
> > > > escape character (^) or quotation marks when you pass them as
> > > > arguments.

> > >
> > >
> > > Ah ha... so, the solution seems to be....
> > >
> > > pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* -^&rP
> > >
> > > or
> >
> > No "or" here. ;)
> >
> > >
> > > pkzip.exe "a:\ws4t1910.zip d:\wp\ws4\*.* -&rP"
> >
> > This will make argv[1]=a:\ws4t1910.zip d:\wp\ws4\*.* -&rP
> > i.e. the whole thing in quotation, which most programs dislike.
>
> OK then, _just_ the "-&rP" portion in quotes like so ?
>
> pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* "-&rP"

I think this will work, haven't tested though.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
23.04.2013, 17:06

@ roytam

PKZIP 2.04 Error Message: What did I do wrong?

> > >
> > > >
> > > > pkzip.exe "a:\ws4t1910.zip d:\wp\ws4\*.* -&rP"
> > >
> > > This will make argv[1]=a:\ws4t1910.zip d:\wp\ws4\*.* -&rP
> > > i.e. the whole thing in quotation, which most programs dislike.
> >
> > OK then, _just_ the "-&rP" portion in quotes like so ?
> >
> > pkzip.exe a:\ws4t1910.zip d:\wp\ws4\*.* "-&rP"
>
> I think this will work, haven't tested though.

One more thing that all of us have neglected mention...
DOS pkzip v2.04 is _not_ LFN aware. Therefore any LFNs will be stored
and restored with only their short names and the LFN will be lost.

---
--
http://glennmcc.org/

Doug(R)

E-mail

23.04.2013, 19:52

@ glennmcc

PKZIP 2.04 Error Message: What did I do wrong?

> One more thing that all of us have neglected mention...
> DOS pkzip v2.04 is _not_ LFN aware. Therefore any LFNs will be stored
> and restored with only their short names and the LFN will be lost.

Just of note, PKZip v2.50 (03-01-1999) *is* LFN aware. You just have to install a LFN driver first if you're in real DOS.

Also note, freeware alternative Info-Zip (which i *vastly* prefer because of syntax and memory improvements) is also LFN-aware.

And finally, two utilities by by Guenter Nagler help deal with long filenames and non-DOS characters in filenames *within* the zip archive itself:

ZipBlank v1.1 - parses the archive headers and index and replaces not-DOS-compatible filename characters by the underscore character "_".

ZipShort v1.0 - parses the archive headers and index and generates DOS-compatible short filenames.

Website: http://www.gnmidi.com/

(Click on "Free Software" link.)

- Doug B.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
24.04.2013, 00:23

@ Doug

PKZIP 2.04 Error Message: What did I do wrong?

> > One more thing that all of us have neglected mention...
> > DOS pkzip v2.04 is _not_ LFN aware. Therefore any LFNs will be stored
> > and restored with only their short names and the LFN will be lost.
>
> Just of note, PKZip v2.50 (03-01-1999) *is* LFN aware. You just have to
> install a LFN driver first if you're in real DOS.
>
> Also note, freeware alternative Info-Zip (which i *vastly* prefer because
> of syntax and memory improvements) is also LFN-aware.
>
> And finally, two utilities by by Guenter Nagler help deal with long
> filenames and non-DOS characters in filenames *within* the zip archive
> itself:
>
> ZipBlank v1.1 - parses the archive headers and index and replaces
> not-DOS-compatible filename characters by the underscore character "_".
>
> ZipShort v1.0 - parses the archive headers and index and generates
> DOS-compatible short filenames.
>
> Website: http://www.gnmidi.com/
>
> (Click on "Free Software" link.)
>
> - Doug B.


Great advice Doug.

Now all we have to do wait for Will to come back
to read all of this advice.

He's been MIA for 15 days now so must have some
different irons in the fire. ;-)

---
--
http://glennmcc.org/

Back to the board
Thread view  Mix view  Order
15192 Postings in 1365 Threads, 250 registered users, 10 users online (0 registered, 10 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum