2012-09-26 24 views

回答

3

请认真阅读请尝试以下操作:

using (ZipFile zip = new ZipFile()) 
    { 
    string[] files = Directory.GetFiles(path); 
    // filter the files for *.pdf 
    zip.AddFiles(files, "Test"); //Test Folder 
    zip.Save(path+"/test.zip"); 
    } 
相关问题