Extract only file not structure

Dec 27, 2010 at 8:42 PM

when you use the extract function it preserves the internal zip structure, how can i turn this off for example if the zipfile is test.zip\a\b\c\myfiile.txt how can i extract just c:\myfile.txt?

Thanks.

Coordinator
Aug 6, 2011 at 2:44 PM

modify the FileName property on the ZipEntry before calling ZipEntry.Extract().

This is a FAQ.