Zip file extraction

Asked

Viewed 52 times

0

Can anyone give me a light? When it comes to the algorithm to extract the file . zip from the location the program stops responding. I’m using as a reference dll Ionic.zip

Private Sub Descompactar()
    Using zip As ZipFile = ZipFile.Read(dirlocal & "\macro.zip")
        For Each entry As ZipEntry In zip
            entry.Extract(dirlocal, ExtractExistingFileAction.OverwriteSilently)
        Next
    End Using

    On Error Resume Next
    My.Computer.FileSystem.DeleteFile(dirlocal & "\macro.zip")
    MsgBox("teste.", MsgBoxStyle.Information, Title:="teste")
    Process.Start(dirlocal & "/programa.exe")
End Sub
  • Ever tried to debug? Why not use native ZIP library?

  • In the end I changed the extraction code but it was not him but the download that I missed a code and the file was corrupted. This algorithm is right too, only gave problem because the file was corrupted due to download algorithm

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.