[
  {
    "Id": "244139",
    "ThreadId": "71584",
    "Html": "<p>Hi Cheeso</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i want to compress a directory to zip file except some child files and directories,&nbsp; how can i do?</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for example,&nbsp; the directory is &quot;D:\\test01&quot;, there are many child files and directories under it, i want to compress &quot;D:\\test01&quot; except the child directory &quot;D:\\test01\\bin&quot; and child files &quot;D:\\test01\\readme.txt&quot;, &quot;D:\\test01\\help.chm&quot;.</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thanks</p>",
    "PostedDate": "2009-10-10T02:22:14.377-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "244174",
    "ThreadId": "71584",
    "Html": "<p>You have to try the <a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/3366de7e-6163-a0d5-2a5f-6541454bd865.htm\">AddSelectedFiles()</a> or the Ionic.FileSelector class .</p>\r\n<p>You can specify the selection criteria&nbsp;like this:&nbsp;&nbsp; &quot;name != .\\bin\\*.* and name != .\\readme.txt and name != .\\help.chm&quot;</p>\r\n<p>ZipFile.AddSelectedFiles(criteria, &quot;d:\\\\test01&quot;, true);</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-10-10T07:15:20.37-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "244307",
    "ThreadId": "71584",
    "Html": "<p>Cheeso, the AddSelectedFiles() can't be used in this situation, because the excluding child files and directories can't be specified the selection criteria, they are specified by users.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-10-10T21:48:53.023-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "244309",
    "ThreadId": "71584",
    "Html": "<p>I don't understand.&nbsp; Can you explain in more detail why you think that AddSelectedFiles cannot be used?&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-10-10T21:58:27.743-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "244313",
    "ThreadId": "71584",
    "Html": "<p>Cheeso,&nbsp; i am wrong,</p>\r\n<p>AddSelectedFiles can be used in my program.</p>\r\n<p>Thank you very much!</p>",
    "PostedDate": "2009-10-10T22:32:58.66-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]