Unzip Archive C#
#1

Hey, im working on a Launcher for Aion and im stucked at unzip the file ;D

 

Here my code:

 

 

//unzip
                    using (ZipFile zip = ZipFile.Read(file))
                    {
                       
                        foreach (ZipEntry zipFiles in zip)
                        {
                            
                            
                            zipFiles.Extract(Root + "\\"+file+"\\", true);
                            MessageBox.Show(Root + "\\" +file+ "\\");
                           
                        }
                    }

                    //download new version file
                    WebClient webClient = new WebClient();
                    webClient.DownloadFile(Server+"version.txt", @[member=Root1010]+"version");

                    //Delete Zip File
                    deleteFile(file);
 

 

 

But im stuck at the unzip in the right directory so if the file 1.zip contains the folder bin32 then extract the files in the bin32 folder..

Give me an example pls :=)

 
#2
Fixxed.. I added in the .xml dokument "Filename" .. Wink It works



Forum Jump:


Users browsing this thread: 1 Guest(s)