file needs to reside in the root of the Zip file

Nov 16, 2011 at 2:56 PM

Hello,

 

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?

 

Thanks,

Gauri

 

Nov 17, 2011 at 1:52 PM

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

Nov 17, 2011 at 4:43 PM

shominy you are an angel.

Thanks.

Nov 18, 2011 at 3:35 PM

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