Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-08-26
7
Medium Priority
?
816 Views
Last Modified: 2012-05-10
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
Comment
Question by:Selvam_cse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 

Author Comment

by:Selvam_cse
ID: 33530421
Please give answer
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 33530443
... there are no zip/unzip functions in vb.net ...

See also this thread: http://www.codeguru.com/forum/showthread.php?t=443029
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 33530480
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Selvam_cse
ID: 33530503
Hi,

So It is not possible to unzip without a third party DLL?
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 33530522
Like both links already explain: No.
0
 
LVL 28

Accepted Solution

by:
Ark earned 1500 total points
ID: 33540176
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
 

Author Closing Comment

by:Selvam_cse
ID: 33734375
Thanks Buddy
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question