Uncompressing .rar or .zip files

Uncompressing .rar or .zip files

Page 1 of 1

4 Replies - 3737 Views - Last Post: 23 October 2010 - 09:23 PM Rate Topic: -----

#1 peter100191  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 60
  • Joined: 05-May 09

Uncompressing .rar or .zip files

Posted 23 October 2010 - 05:46 PM

Hello,

I'm sorry I have no code to offer, because I haven't anywhere to start. How would I go about uncompressing files to specific folders?

Thank you.

Peter
Is This A Good Question/Topic? 0
  • +

Replies To: Uncompressing .rar or .zip files

#2 vasdueva  Icon User is offline

  • D.I.C Head

Reputation: 15
  • View blog
  • Posts: 141
  • Joined: 03-April 07

Re: Uncompressing .rar or .zip files

Posted 23 October 2010 - 06:02 PM

Google is god, but check out the DotNetZip library.
Was This Post Helpful? 0
  • +
  • -

#3 biggerB  Icon User is offline

  • If at first you donít succeed, call it version 1.0
  • member icon

Reputation: 80
  • View blog
  • Posts: 760
  • Joined: 11-June 10

Re: Uncompressing .rar or .zip files

Posted 23 October 2010 - 07:05 PM

I would use the Sharpzip Library ( for zip anyways )
Was This Post Helpful? 1
  • +
  • -

#4 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1053
  • View blog
  • Posts: 4,081
  • Joined: 02-July 08

Re: Uncompressing .rar or .zip files

Posted 23 October 2010 - 07:10 PM

Why Sharpzip? Could you explain the benefits or your reason BiggerB? Am I just curious.
Was This Post Helpful? 1
  • +
  • -

#5 peter100191  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 60
  • Joined: 05-May 09

Re: Uncompressing .rar or .zip files

Posted 23 October 2010 - 09:23 PM

Ionic zip worked very well for me, thank you. For those of you reading this trying to find the code you need, it is simply:

            Using zip As ZipFile = ZipFile.Read(readdirectory)
                Dim entry As ZipEntry
                For Each entry In zip
                            entry.Extract(destinationdirectory, ExtractExistingFileAction.DoNotOverwrite)
                Next
            End Using



You must import the Ionic Zip library, and add the appropriate import.

Thank you guys for the help! Do you know where I could find .RAR unzipping? This one doesn't seem to do it.

Peter
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1