file needs to reside in the root of the Zip file

Nov 16, 2011 at 1:56 PM



When I create a zip file.

The file inside the zip has the whole path where it's been created.

When I unzip mannually, it creates the whole directory tree inside the extraction folder .

Is there any way file can reside in the root of the Zip file?





Nov 17, 2011 at 12:52 PM

zip.AddFile("d:\pdf\report.pdf", "")

Nov 17, 2011 at 3:43 PM

shominy you are an angel.


Nov 18, 2011 at 2:35 PM

Thanks.  I was looking to do the same thing and just tried it different ways.