[
  {
    "Id": "535830",
    "ThreadId": "238385",
    "Html": "\r\n<p>Is there some way to exclude files before it is added into the zip file. I'm using VB2005</p>\r\n<p>I'm new to Dotnetzip and planning to use it in my program to zip a backup copy of contents of CF flash cards befor it is prepeard for new use.<br>\r\nI use the demo app Zipit as a base since I had hard time to find how to add multiple files and folders and this had it ready to be modified.<br>\r\nI want to exclude a file since it makes the backup zip big and is not important for later use of the backup zip files. This &quot;big&quot; file is only around 10MB But since\r\n<br>\r\nIt may end up to have several of these backup files stored before it is copied over to another computer. It is fine if it could be as small as possible and remove unimportant files.&nbsp;</p>\r\n",
    "PostedDate": "2010-12-14T14:56:27.897-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "537433",
    "ThreadId": "238385",
    "Html": "\r\n<p>yes, you can specify critieria&nbsp; fpr including or excluding files on the command line for zipit.exe</p>\r\n<p>not sure if you are using VB2005 or not, since zipit itself is a working application.&nbsp; you don't need to change it in order to use it.&nbsp; Also zipit is written in C#, not VB.&nbsp;</p>\r\n<p>From the help message generated by zipit.exe, the selector is how you specify which files to include or not.&nbsp; Snip:</p>\r\n<p>&nbsp;&lt;selector&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - a file selection expression.&nbsp; Examples:<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *.txt<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (name = *.txt) OR (name = *.xml)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (attrs = H) OR (name != *.xml)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ctime &lt; 2009/02/28-10:20:00)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (size &gt; 1g) AND (mtime &lt; 2009-12-10)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ctime &gt; 2009-04-29) AND (size &lt; 10kb)</p>\r\n<p>So I guess you'd want to do something like (name != 'LargeFileYouDontWant.eee') as a selection criterion.</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-12-17T10:48:09.347-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "537661",
    "ThreadId": "238385",
    "Html": "\r\n<p>Hi</p>\r\n<p>Thanks for answering.&nbsp; In the dev kit zip&nbsp; for Dotnet zip there is an example folder for VB. and the winform zipup. I called it Zipit by misstake. sorry.<br>\r\n&nbsp;I think it is for VB2008, but i have copied it over to VB2005.</p>\r\n<p>I plan to use the demo with some changes to do the zipping in a bigger program and want to exclude certan file. One file. The progam has windows forms.</p>\r\n<p>I hope this clearify what I ask for.</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-12-18T01:12:39.053-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539021",
    "ThreadId": "238385",
    "Html": "\r\n<p>I have some what find a way to do this but I hoped to do this in one process.<br>\r\nI now a routine that remove the one big file by name after the zipping of the flashcard is completed.</p>\r\n",
    "PostedDate": "2010-12-21T14:55:51.86-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "540020",
    "ThreadId": "238385",
    "Html": "\r\n<p>The criteria I described above can be used within a program, if you call AddSelectedFiles. check\r\n<a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/b0f93ce6-b76f-da4b-8c60-834e25bfd5a2.htm\">\r\nthe reference documentation</a>.</p>\r\n<p>For an alternative, you could just search on the disk.&nbsp; There are examples that show how to do this with LINQ in VB.NET,\r\n<a href=\"http://dotnetzip.codeplex.com/wikipage?title=DotNetZip-LINQ-VB&referringTitle=Examples\">\r\non the dotnetzip website</a>.&nbsp; Check the third example on that page.&nbsp;&nbsp; If you don't want to&nbsp;use LINQ, you can do your own search, and call AddFiles() with the list of files to add.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-12-23T12:05:06.043-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]