DotNetZip How Add Selected Files without creating folders

الجنرال

New Member
I want to add in zip file \[code\]"test"\[/code\] all pdf files from \[code\]path\[/code\]\[code\]using (var zip = new ZipFile()) { zip.AddSelectedFiles("*.pdf",path); zip.Save(path+"/test.zip"); }\[/code\]when test.zip file is created have this directory :\[code\]**test.zip**\Users\administrator\Documents\vs2010\Projects\my project\**pdf files**\[/code\]How to make all pdf documents to be directly in test.zip\[code\] test.zip\pdf files\[/code\]
 
Back
Top