Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Files/Folders missing after unzip

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #20281 |

    I have a .zip file created elsewhere that my app needs to unzip. The archive contains numerous files and folders (the file itself is about 350Mb zipped, 900Mb+ unzipped) of all different sizes and depths. When I have the Xceed component unzip it, everything seems fine, but there are a handful of folders and a couple files that don’t get unpacked. The folders are empty folders (though still necessary) but not sure about the files.

     The code I am using (_ArchiveFile and _UnzipFolder are properties set prior to method execution):

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


                Cursor = Cursors.WaitCursor

                Dim zip As New ZipArchive(New DiskFile(_ArchiveFile))

                Dim folder As New DiskFolder(_UnzipFolder)

                zip.CopyFilesTo(folder, True, True)

            Catch ex As Exception

                Cursor = Cursors.Default

                Throw New Exception(String.Format(“Unzip Failed:{0}{1}”, vbCrLf, ex))


                Cursor = Cursors.Default

            End Try

        End Sub


    What is it I am doing or not doing (right/wrong) that could be causing this? Thanks

     — Andrew 

    Imported from legacy forums. Posted by Andrew (had 2190 views)

    User (Old forums)
    Post count: 23064

    Hi Andrew,

    the answer to your question could according to the operating system you are running your application on.  If the application tries to go into a directory that can be seen from ‘outside/above’ but it does not have the credits (needs to be the owner/an administrator, for example) to read this directory’s content, it won’t.   In some cases, starting the application using “Run as administrator” could help. 

    As far as I can know, the chances are that the behavior you are seeing is operating system related.  I know that this will sound trivial but when you open the archive to just look at the content, is everything there? 

    There must be a logical explanation behind all this. 

    Imported from legacy forums. Posted by Ghislain (had 798 views)

    User (Old forums)
    Post count: 23064

    I have also the same problem. I have zip file of around 600 MB and it contain 31 folders Out of 31 only 1 folder was empty. When I unzip uisng the Xceed component i got only 30 folders and the empty folder was missing. If I unzip manually I got 31 folders.

    Even i execute the program and unzipping manually both under the same user account and the same location.

     Note: If list the folders in the zip file it gave 31 folders.

     Please find the code that used to extarct the file below

    Dim zipFile As New DiskFile(zipFilename)

    If Not zipFile.Exists Then

    Throw New Exception(“Zip file does not exists. The file name is “ & zipFilename)

    End If

    ‘Create a ZipArchive object to access the zip file

    Dim zip As New ZipArchive(zipFile)

    ‘Create a DiskFolder object for the destination folder

    Dim destinationFolder As New DiskFolder(destFolder)

    ‘Copy the contents of the zip file to the destination folder


    True, True)

    Imported from legacy forums. Posted by CrazyGeek (had 1252 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.