Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Decompressing a Zip file

Posted on 2014-03-06
6
Medium Priority
?
286 Views
Last Modified: 2014-03-06
I am trying to find a means to unzip files in code.  I can find any number of code samples that work for .Net 4.5 but none for 3.5.  I am looking for an example
0
Comment
Question by:Alyanto
  • 3
  • 3
6 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 39908889
Since the release of the .Net Framework 3.0, we are now able to handle .zip files.  Microsoft provides the System.IO.Packaging class but it is so deeply hidden that most of us missed it. Check http://emoreau.com/Entries/Articles/2008/08/Introducing-SystemIOPackaging.aspx
0
 
LVL 1

Author Comment

by:Alyanto
ID: 39909543
CreateFilenameFromUri on line 4 in your code sample is claiming not to be declared.  I do have IO.Packaging imported so that is not the source of the problem.  Any suggestions are welcome.  

I am using framework 3.5 and due to the business reluctance to upgrade that is unfortunately my limit at the moment.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39909705
as stated in "Setting the reference", add a reference to the “WindowBase”
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 1

Author Comment

by:Alyanto
ID: 39909749
WindowsBase has already been added which is why I was so surprised
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39909787
Wait a minute. This method is a private one available in the downloadable demo.
0
 
LVL 1

Author Closing Comment

by:Alyanto
ID: 39909909
Massive cheesy grin here!  Many thanks Eric

/Aly
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

916 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