Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

does pkzip return an errorlevel?

846 views
Skip to first unread message

carlo

unread,
Jan 14, 1999, 3:00:00 AM1/14/99
to
Is there a way to test for successful creation of a zip file with pkzip?
Does it generate an errorlevel?

Thanks for your knowledge.

DavidDF

unread,
Jan 14, 1999, 3:00:00 AM1/14/99
to
Here are the errorlevel codes as listed in the Pkzip 2.04g Manual.doc file:

PKZIP:
0 No error.
1 Bad file name or file specification.
2,3 Error in .ZIP file.
4-11 Insufficient Memory.
12 No files were found to add to the .ZIP file, or no
files
were specified for deletion.
13 File not found. The specified .ZIP file or list file
was not found.
14 Disk full.
15 .ZIP file is read-only and can not be modified.
16 Bad or illegal parameters specified. (help screen
displayed)
17 Too many files.
18 Could not open file.
255 User pressed control-c or control-break


PKUNZIP:
0 No error.
1 Warning error (such as failed CRC check).
2,3 Error in .ZIP file.
4-8 Insufficient Memory.
9 File not found. No .ZIP files found.
10 Bad or illegal parameters specified. (help screen
displayed)
11 No files found to extract/view etc.
50 Disk Full.
51 Unexpected EOF in .ZIP file.
255 User pressed control-c or control-break

David

Jawade

unread,
Jan 14, 1999, 3:00:00 AM1/14/99
to
carlo <z...@zag.com> schreef in artikel <F8C344F182D9F04C.E1623505...@library-proxy.airnews.net>...

> Is there a way to test for successful creation of a zip file with pkzip?
> Does it generate an errorlevel?
>
> Thanks for your knowledge.

Yes, it will do. The ouput-message "PKZIP: (E12) nothing to do!"
shows you the errorlevel, 12 (twelve).

Of corse, there are more of them. If no message is given,
there is no error, and the errorlevel is 0 (zero).

Greetings, Jawade.


carlo

unread,
Jan 15, 1999, 3:00:00 AM1/15/99
to
Thanks a million, fellows!

(notice the use of the term 'fellow' is not intended to be gender-specific.)

0 new messages