Zip extracter
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Hey guys i was woundering if anyone could make a tutorial on how to extract a files from a zip to a folder that you choose
if would be very useful
if would be very useful

Last edited by Livengood on Sat Feb 20, 2010 11:54 pm, edited 1 time in total.
Hey guys i was woundering if anyone could make a tutorial on how to extract a files from a zip to a folder that you choose if would be very usefulHi Livengood
Someone a while back posted the same queastion, have a look here in this section as i'm sure there is a post answering that......hope this helps
regards
Chris
ps: welcome to codenstuff cooll;
Hi Livengood
mm i have not tried that out myself, so i dont know what the error is, but i'm sure someone will come here and point you in the right direction and help you with the problem.
Chris
mm i have not tried that out myself, so i dont know what the error is, but i'm sure someone will come here and point you in the right direction and help you with the problem.
Chris
Hello,
Are you using this code:
Are you using this code:
Code: Select all
Dim ZipToUnpack As String = "C:\C1P3SML.zip" 'Name and location of your zip file
Dim TargetDir As String = "C:\C1P3SML" 'Location and folder name to extract too
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
' here, we extract every entry, but we could extract
' based on entry name, size, date, etc.
For Each e In zip1
e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
End Using
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
yea i was trying to use that code, i keep getting a error
Code + Error spot :
Dim ZipToUnpack As String = "C:\C1P3SML.zip" 'Name and location of your zip file
Dim TargetDir As String = "C:\C1P3SML" 'Location and folder name to extract too
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
' here, we extract every entry, but we could extract
' based on entry name, size, date, etc.
For Each e In zip1
e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
End Using
Code + Error spot :
Dim ZipToUnpack As String = "C:\C1P3SML.zip" 'Name and location of your zip file
Dim TargetDir As String = "C:\C1P3SML" 'Location and folder name to extract too
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
' here, we extract every entry, but we could extract
' based on entry name, size, date, etc.
For Each e In zip1
e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
End Using
Hello,
When you download the DotNetZip library make sure you reference the "Ionic.Zip.dll" file by:
Clicking "Project" in the top menu and then click "Your application properties" > "References" then browser to the dll and click OK.
Then add this import to the top of your forms code:
When you download the DotNetZip library make sure you reference the "Ionic.Zip.dll" file by:
Clicking "Project" in the top menu and then click "Your application properties" > "References" then browser to the dll and click OK.
Then add this import to the top of your forms code:
Code: Select all
And use this for extracting zips:Imports Ionic.Zip
Code: Select all
Happy coding cooll; Dim ZipToUnpack As String = "C:\C1P3SML.zip" 'Name and location of your zip file
Dim TargetDir As String = "C:\C1P3SML" 'Location and folder name to extract too
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim we As ZipEntry
For Each we In zip1
we.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
End Using
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023