[
  {
    "Id": "548736",
    "ThreadId": "241641",
    "Html": "\r\n<p>hi,</p>\r\n<p>I'm wondering if it is possible to move directly files in a zip files without&nbsp; deleting them after.</p>\r\n<p>I create a zip file</p>\r\n<p>&nbsp;</p>\r\n<pre><strong>Using zip As ZipFile = New ZipFile<br>                zip.AddSelectedFiles(&quot;*.mo&quot;, &quot;d:\\work&quot;, &quot;&quot;)<br>                <br>                zip.Save(&quot;d:\\lavoro\\work\\MyZipFile.zip&quot;)<br><br>End Using</strong></pre>\r\n<p>&nbsp;</p>\r\n<p>but in folder \\work all files with extension *.mo are still present. I tried to find something in all discussions without success.</p>\r\n<p>How can I do?</p>\r\n<p>thanks in advanced</p>\r\n<p>BR,</p>\r\n<p>gio</p>\r\n",
    "PostedDate": "2011-01-13T07:36:27.11-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "550113",
    "ThreadId": "241641",
    "Html": "\r\n<p>Mi dispiace, there is no &quot;Move&quot; verb in the ZipFile class.&nbsp; The metaphor or &quot;object model&quot; for the ZipFile class calls for applications to &quot;Add entries&quot; or &quot;Add files&quot; or &quot;Add directories&quot; into the ZipFile.&nbsp;</p>\r\n<p>There is a FileSelector class that may help you.&nbsp; Rather than calling AddSelectedFiles, you can use the FileSelector to directly select files.&nbsp; With that selection of files, you can then perform 2 actions:&nbsp; add the files into the zip, then\r\n later delete the files if appropriate. It would look something like this:</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">Dim</span> selector <span style=\"color:blue\">as</span> <span style=\"color:blue\">New</span> Ionic.FileSelector(<span style=\"color:#a31515\">&quot;*.mo&quot;</span>)\r\n<span style=\"color:blue\">Dim</span> selection <span style=\"color:blue\">as</span> <span style=\"color:blue\">New</span> List&lt;Of <span style=\"color:blue\">String</span>&gt;\r\nselection = selector.SelectFiles(<span style=\"color:#a31515\">&quot;d:\\work&quot;</span>)\r\n<span style=\"color:blue\">Using</span> zip <span style=\"color:blue\">As</span> ZipFile = <span style=\"color:blue\">New</span> ZipFile\r\n    zip.AddFiles(selection)\r\n    zip.Save(<span style=\"color:#a31515\">&quot;d:\\lavoro\\work\\MyZipFile.zip&quot;</span>)\r\n<span style=\"color:blue\">End</span> <span style=\"color:blue\">Using</span>\r\n<span style=\"color:green\">'' Delete files in the selection here</span>\r\nForEach.... \r\n</pre>\r\n</div>\r\n",
    "PostedDate": "2011-01-16T06:52:46.64-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]