Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anybody using Winzipmgr class?
Message
From
18/09/2002 11:58:00
 
 
To
18/09/2002 11:15:16
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00701836
Message ID:
00701868
Views:
16
>Hi,
>I am using WinZipMgr class to extract zip file in my application. It work great!
>However, that are some invalid zip files downloaded from web caused by data lost. Once winzip try to extract it, it show messagebox and prompt the zip file is not valid, try to download it again...
>
>How could my application know what happen ?
>
>Thank you

Hi John,

Your application really can't know that this happened. At best it could probably know only that WinZip did not finish running in some predetermined period of time. As I mentioned in the WinZipMgr documentation, WinZipMgr is not particularly well suited for unattended use because WinZip itself may require user interaction in some cases, like in the case of an invalid zip file.

The only way I know of to deal with this situation is to have the user dismiss the WinZip dialog box, but even that leaves your application to go on as if everything was OK. There are things you can do to try and detect that, such as looking for a particular file that was supposed to be unzipped, but they're not foolproof.

WinZipMgr is useful in situations where WinZip itself is useful, but if you need a true component for unattended use then you're probably better off using something like DynaZip.

HTH,

-Rick
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform