Page 1 of 1

addUnZip question

Posted: Fri May 13, 2016 8:28 pm
by TWolfe
Is anyone using the addUnZip.DLL to unzip .ZIP files? If so have you figured out how to use the test option to test a zip file before unzipping it?

We occasionally get faulty backup zip files and they hangup the import program when we try to test them.

As an alternative is there another unzip option that will not hangup the system on a faulty .ZIP file?

Thanks,
Terry

Re: addUnZip question

Posted: Fri May 13, 2016 9:21 pm
by bwolfsohn
Terry,

We haven't tried testing zips, but what about running the command line version of winzip in a batch mode and testing the return value
Here's the screen output:

wzunzip -t wolfgang_grok
WinZip(R) Command Line Support Add-On Version 3.2 (Build 9715)
Copyright (c) 1991-2011 WinZip International LLC - All Rights Reserved

Zip file: wolfgang_grok.zip

Testing consignl.prg OK
No errors detected in compressed data of wolfgang_grok.zip.

Re: addUnZip question

Posted: Sat May 14, 2016 4:58 pm
by TWolfe
Hi Brian,

I had thought of that, but we receive hundreds of files each day and I had hoped to use the addUnZip testing just to streamline the process.

Terry

Re: addUnZip question

Posted: Sun May 15, 2016 5:27 am
by Auge_Ohr
TWolfe wrote:Is anyone using the addUnZip.DLL to unzip .ZIP files? If so have you figured out how to use the test option to test a zip file before unzipping it?
what is your Problem with

Code: Select all

FUNCTION TestUnZip()
did you have some Test ZIP which are corrupt ?