Ionic zip file path issue

Sep 10, 2010 at 8:43 AM

Hello Experts,


I am using in one of my projects and so far i am able to zip file using this assembly easily.

My problem is that using this assembly the files are stored in zip file with the complete file path .Below is the code of what i mean

Dim filepath as string= "c:/folder1/folder2/file.txt"



Now the problem is when you look at the zip file you will find that the complete directory structure is create in the zip file. SO when you extract it it will come out  as Folder1/folder2/file.txt.


I don't want that i only want the file directly.


Please advise


Jul 4, 2011 at 7:56 AM


I agree, the code is preserving the entire directory structure. I want no folders or perhaps the innermost folder which contains all the images which I'm zipping. I'm using the AES compression which works with winzip. Had to download the most recent version of winzip to get that working.

Can you please change your source a little to make this happen?