Click here to Skip to main content
16,022,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I require to zip some files in vb.net using .net framework 3.5.
how we can achieve this?
Posted

Try this..


C++
private string[] ExpandZipFile(string ZipFile, string DestFolder)  
    {  
      Shell h = new Shell();  
      Folder sf = h.NameSpace(ZipFile);  
      Folder df = h.NameSpace(DestFolder);  
      string[] files = new string[sf.Items().Count];  
      int i = 0;  
      foreach (FolderItem f in sf.Items())  
      {  
        df.CopyHere(f, 0);  
        files[i++] = f.Name;  
      }  
      return files;  
    }
 
Share this answer
 
v2
Use SharpZipLib[^] - google will find you plenty of instructions and examples.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900