• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 829
  • Last Modified:

Create VB.Net applcation to unzip into a folder without using a tthird party DLL?

Hi ALL!!!!


I am Selvam...

I have the doubt!

I used System.IO.Packaging & System.IO.Compression to make zip files...

Similarly Can we do Unzip with that above packages?

Without any third party DLL is it possible to create to unzip files into a folder which I specified?

0
Selvam_cse
Asked:
Selvam_cse
  • 3
  • 3
1 Solution
 
Selvam_cseAuthor Commented:
Please give answer
0
 
DhaestCommented:
... there are no zip/unzip functions in vb.net ...

See also this thread: http://www.codeguru.com/forum/showthread.php?t=443029
0
 
DhaestCommented:
The .NET Framework includes GZipStream and related classes, but they only support compression, not the standard ZIP file structure. This article explains how you can handle correctly zipping and unzipping folders and files including using a zip password
http://eggheadcafe.com/tutorials/aspnet/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-f.aspx

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Selvam_cseAuthor Commented:
Hi,

So It is not possible to unzip without a third party DLL?
0
 
DhaestCommented:
Like both links already explain: No.
0
 
ArkCommented:
Heh, impossible :)  It's a piece of cake!
Add reference to Microssoft Shell and Automation (COM)

    Private Sub Unzip(ByVal destFolder As String, ByVal srcZip As String)
        Dim oShell As New Shell32.Shell
        Dim oDestFolder As Shell32.Folder
        If Not System.IO.Directory.Exists(destFolder) Then
            System.IO.Directory.CreateDirectory(destFolder)
        End If
        oDestFolder = oShell.NameSpace(destFolder)
        oDestFolder.CopyHere(oShell.NameSpace(srcZip).Items)
        oDestFolder = Nothing
        oShell = Nothing
    End Sub
0
 
Selvam_cseAuthor Commented:
Thanks Buddy
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now