Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for .NET | Custom Development Reply | PowerTCP Zip Compression for .NET Topics | Forums   
AuthorForum: PowerTCP Zip Compression for .NET
Topic: QuickUnzip (Unzip) missing folders and files are zero length
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 4, 2014 8:18 AM

Hello everyone,
Visual Studio 2013, VB.Net 4.5

Here is the code:

Imports Dart.PowerTCP.Zip
Public Class Form1
  Public Sub New()
    InitializeComponent()

    'E:\FTP_Downloads
    'WG-FSMT-EBI-01_140815_1147_sdcu.zip
    Try

      Archive1.Clear()
      Archive1.PreservePath = True
      Archive1.Overwrite = Overwrite.Always
      Archive1.QuickUnzip("E:\FTP_Downloads\WG-FSMT-EBI-01_140815_1147_sdcu.zip", "E:\TEST")

    Catch zx As ZipException
      MsgBox("ZipException: " & zx.Message, MsgBoxStyle.OkOnly)
    Catch ex As Exception
      MsgBox("Exception: " & ex.Message, MsgBoxStyle.OkOnly)
    End Try


  End Sub
End Class

That's it, just a little test project to get me started.

Zip file has 7 folders and 500+ files. The result only has 3 folders and the files in these are zero length.

Any ideas?
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 4, 2014 9:55 AM

I see what is going on now, but I do not know why.

It's only unzipping the folders with zero-length files and only including the zero length files in those folders.
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 4, 2014 11:32 AM

Ok see the problem now, you have to use the Archive1.Exception handler to see that it is not recognizing the password.

No matter what you use the password is invalid.
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 5, 2014 10:23 AM

This works with Dart.PowerTCP.Zip.dll
Version: 2.0.1.0
Runtime Version 1.1.4322

It does not work with:
Version: 2.1.0.2
Runtime Version 2.0.50727

Passwords are always Invalid and files with a CRC = 0 throw an Invalid CRC exception.
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 6, 2014 10:44 AM

Neglected to add the line for the password to the code.

   Archive1.PreservePath = True
   Archive1.Overwrite = Overwrite.Always
   Archive1.Password = "mypassword"
   Archive1.QuickUnzip("E:\FTP_Downloads\WG-FSMT-EBI-01_140815_1147_sdcu.zip", "E:\TEST")
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 6, 2014 12:08 PM

Anyone? I have to be missing something simple here.
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 376
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted October 6, 2014 12:27 PM

Thank you for your post. It looks like you are using a previous version of PowerTCP Zip Compression for .NET, however I cannot find your email address in our customer system. Can you please email your Product Key (serial number) to support@dart.com and reference this forum post?

Once your email is received we will be happy to provide you with additional information.

Best regards,
Jamie
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 6, 2014 1:20 PM

Email was sent
wreilly

From: USA
Posts: 8
Member Since: 10/04/14
posted October 7, 2014 10:16 AM

Any word on this?
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 376
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted October 7, 2014 4:31 PM

This issue is currently being handled off-line. Please contact sales@dart.com and reference this post if you have any questions.

Regards,
Jamie
Reply | PowerTCP Zip Compression for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX