Thread: UnZip

Results 1 to 5 of 5
  1. #1
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed

    UnZip

    Im using SharpZipLib . . . But I have one error

    Code:
    Dim unz As New Zip.FastZip
            unz.ExtractZip(TextBox2.Text, TextBox1.Text, "")
    It gives me the error (Cannot find central directory.) any help?

    Thanks

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    What's the textbox1/2's text?

    Does the packed file have a password?



  3. #3
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed
    Textbox1 File to unzip, Textbox2 File destination. No pw

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    [highlight="VB.Net"]Private Sub UnpackFile(Byval FileToUnpack as string,byval WhereToSave as string,optional byval Password as string = "")

    if io.file.exists(filetounpack) then
    dim unz as new zip.fastzip
    unz.password = password
    unz.extractzip(filetounpack,wheretosave,"")
    else
    Msgbox("File to unpack is not found.")
    end if
    end Sub[/highlight]

    What EXACTLY is in the textboxes?

    Tell me the exact pathes.



  5. #5
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed
    Ah, Ok

    Code:
    textbox1:C:\Documents and Settings\HP_Administrator\Desktop
    textbox2:C:\Documents and Settings\HP_Administrator\Desktop\Image Dowloader.rar
    --------------

    The cannot find central directory error continues
    Last edited by alvaritos; 06-11-2011 at 04:18 AM.