DotNetZip Issue

Feb 16, 2012 at 12:40 PM

Hi all,

i am using DotNetZip Library to unzip my zipped files,here is my code

using (ZipFile zip = ZipFile.Read(copyTo))
                    foreach (ZipEntry ttt in zip)
the issue is, it extract like this
i do not need like this..i want to be like this
like we can write click on any zip file and click on extract here.?
how it could be
Mar 2, 2012 at 1:07 PM

I think you are specifying wrong base directory in ttt.Extract(filePath3).This file path should be "folder" not folder/folder.


Lets Suppose you zip file resides inside C:\Test and filename is

 using (ZipFile zip = ZipFile.Read(@"C:\Test\"))
                foreach (ZipEntry zipEntry in zip)


So base directory should be C:\Test as Extract here will extract into the same folder.