PKZip/Unzip Errors

Error Levels<br /> <br /> &nbsp; In order to enhance the power of using PKZIP and PKUNZIP from within<br /> &nbsp; another program or within a batch file, they return error levels.&nbsp; These<br /> &nbsp; error levels are listed below.<br /> <br /> &nbsp; Please note that if testing error levels in a batch file, DOS tests the<br /> &nbsp; error level not for equality, but for greater than or equal to.<br /> <br /> <br /> &nbsp; PKZIP<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; No error.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; Bad file name or file specification.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 2,3&nbsp;&nbsp; Error in .ZIP file.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 4-11&nbsp; Insufficient Memory.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;&nbsp; No files were found to add to the .ZIP file, or no files<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; were specified for deletion.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp;&nbsp;&nbsp; File not found.&nbsp; The specified .ZIP file or list file was<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not found.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 14&nbsp;&nbsp;&nbsp; Disk full.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp;&nbsp; .ZIP file is read-only and can not be modified.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp;&nbsp; Bad or illegal parameters specified. (help screen displayed)<br /> &nbsp;&nbsp;&nbsp;&nbsp; 17&nbsp;&nbsp;&nbsp; Too many files.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 18&nbsp;&nbsp;&nbsp; Could not open file.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 255&nbsp;&nbsp; User pressed control-c or control-break<br /> <br /> <br /> &nbsp; PKUNZIP<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; No error.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; Warning error (such as failed CRC check).<br /> &nbsp;&nbsp;&nbsp;&nbsp; 2,3&nbsp;&nbsp; Error in .ZIP file.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 4-8&nbsp;&nbsp; Insufficient Memory.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp; File not found.&nbsp; No .ZIP files found.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp; Bad or illegal parameters specified. (help screen displayed)<br /> &nbsp;&nbsp;&nbsp;&nbsp; 11&nbsp;&nbsp;&nbsp; No files found to extract/view etc.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp;&nbsp; Disk Full.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 51&nbsp;&nbsp;&nbsp; Unexpected EOF in .ZIP file.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 255&nbsp;&nbsp; User pressed control-c or control-break<br /> <br /> <br /> &nbsp; ZIP2EXE<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; No error<br /> &nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; Error in .ZIP file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp; Error in .ZIP file, use PKZIPFIX<br /> &nbsp;&nbsp;&nbsp;&nbsp; 3-4&nbsp;&nbsp; Insufficient memory to process file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp; Can't open Source file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp; Error in .ZIP file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp; Disk full writing target file during EXE to ZIP process<br /> &nbsp;&nbsp;&nbsp;&nbsp; 11&nbsp;&nbsp;&nbsp; Disk full writing target file during ZIP to EXE process<br /> &nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;&nbsp; .ZIP file being converted contains a file compressed with a<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; method not supported by the version of PKSFX being<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attached by ZIP2EXE<br /> &nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp;&nbsp;&nbsp; User answered &quot;NO&quot; in response to an &quot;overwrite(y/n)?&quot; prompt<br /> <br /> <br /> &nbsp; PKSFX<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; Warning error such as:<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File fails CRC check, Unknown compression method.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp; Can't find .EXE file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 4-8&nbsp;&nbsp; Insufficient memory<br /> &nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp; Unable to located listfile<br /> &nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;&nbsp; User aborted at comment pausing &quot;Extract now (y/n)?&quot; prompt<br /> &nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp;&nbsp;&nbsp; Error in .EXE file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp;&nbsp; Disk full<br /> <br /> <br /> &nbsp; PKSFX/PKUNZIP Junior<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; Warning error such as:<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File fails CRC check, Unknown compression method.<br /> &nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp; Can't find .EXE file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp; Error in .EXE file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp; File has a bad table<br /> &nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp; Can't create file<br /> &nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp; Disk full<br /> &nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp; Too many files<br /> &nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp; User aborted at comment pausing &quot;Extract now (y/n)?&quot; prompt