Extract ZIP File using code

All,
I'm wanting to copy a zip file from a network to the local PC (not a problem) however I also need to unzip the files within the zip file to a specified location on the users machine. Can this be done through VB code

Hope you can help

Cheers


Answer this question

Extract ZIP File using code

  • Carl Bruneau

    Check this thread...


  • Zeek

    .NET doesnt provide Zip Functionality out of the box. You'll need to find a third party component to handle this.

    A simple web search will reveal many components. A common one used is

    http://www.sharpziplib.com/

    Another option maybe to use something 7-Zip from http://www.7-zip.org/ which has a command-line interface, using ProcessStart

    .NET does have some compression routines - but they are not winzip file compatible. This is the System.IO.Compression namespace.


  • Extract ZIP File using code