Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
Author | Forum: PowerTCP Zip Compression for ActiveX Topic: zipTesting and zipFixing |
cranpc From: Carver, MA USA Posts: 15 Member Since: 01/10/04 |
posted February 28, 2005 10:17 AM In the help file, ZipStatus Constants, you list zipTesting and zipFixing as status constants. Can you tell me how the zip control progress event might show them as the status? Are there methods that will test a zip file or fix a corrupted file? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2005 10:28 AM They are not used at this time. When we designed the component, we put them in there in case we wanted to add "Fix" and "Test" methods later. At this time there are no plans to add either method. Did you have a specific need for either of those methods? |
cranpc From: Carver, MA USA Posts: 15 Member Since: 01/10/04 |
posted February 28, 2005 10:43 AM Hi Tony, They would be good methods to have. My customers are zipping large files(100-800MB) using zipAESMaximum and FTPing to my secure FTP server. There are rare occaisions when the uploaded file is identified as corrupt, after having been downloaded. I suspect they are glitches in the users desktop. It would be nice to test the zip file, and fix it if needed, before it is uploaded (or on the server after uploaded). As a side note, After I updated to the latest version of the zip control, this problem happens far less frequently. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2005 11:00 AM OK, thanks. I'll suggest it at the next product meeting. |
cranpc From: Carver, MA USA Posts: 15 Member Since: 01/10/04 |
posted February 28, 2005 1:15 PM Tony, one more question. When zipping files that are several levels deep in the directory, is it possible to preserve only the parent folder and not the parent's parents as well? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2005 1:25 PM Yes. Here are the rules: 1) If IncludeSubs is true, all files will be included in the archive 2) If PreservePath is true, the extra path info will be saved. So, what you want is IncludeSubs = True and PreservePath = False |
cranpc From: Carver, MA USA Posts: 15 Member Since: 01/10/04 |
posted February 28, 2005 1:56 PM Sorry to be a bother, Tried your suggestion and did not get the resluts I was looking for. First, I am zipping with this code "Zip1.FileStore.Add "C:\Julie\Roy\*.*", True, False". C:\Julie\Roy\ has 4 text files in it. I am unzipping with this code "Zip1.FileStore.Unzip "C:\Julie\Tim", True, True" What I want to see when I unzip is a new folder, C:\Julie\Tim\Roy, (with '\Roy' being the parent folder of the zipped files...) and inside it should be the 4 text files. What's happening is the 4 text files are being extracted to C:\Julie\Tim. If there's no easy way to do it, could I add the parent folder to the file.comments field when zipping, and then, when unzipping, add the folder name, that's in the file.comments field or would you suggest something else? |
cranpc From: Carver, MA USA Posts: 15 Member Since: 01/10/04 |
posted February 28, 2005 2:10 PM Hi again. I just discovered that I can edit the file.path property in the zip1_progress event, when status = zipAdding. I have set preservepath = true, then in the progress event I parse out all but the parent folder in the file.path field. Thanks anyway. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2005 2:11 PM You can't do that. Your choices are to preserve all the paths, or have no path at all. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2005 2:13 PM My response was not to your last post, but the one before it. I'm glad to hear you found a way to get what you want. |
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
![]() |