[
  {
    "Id": "255612",
    "ThreadId": "74687",
    "Html": "<p>I am using this nifty zip dll for the first time.&nbsp; I am trying to use the&nbsp;<span style=\"font-size:x-small\">AddSelectedFiles() method to add files to a zip file.&nbsp; In this simple example, I can use AddFile() which produces the desired results but beyond my simple example I do want to use AddSelectedFiles() so I can use wildcards in the filename.&nbsp; I can use AddFile() as follows:</span></p>\r\n<p style=\"padding-left:30px\">Using zip As ZipFile = New ZipFile</p>\r\n<p style=\"padding-left:60px\">zip.AddFile(&quot;c:\\users\\public\\myapp\\mydatabase.mdb&quot;, &quot;&quot;)</p>\r\n<p style=\"padding-left:60px\">zip.Save(zipFileName)</p>\r\n<p style=\"padding-left:30px\">End Using</p>\r\n<p><span style=\"font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">This works just fine.&nbsp; The file is added to the 'root' of the zip file (no path is shown when viewing the file with WinZip.&nbsp; However, when I substitute AddFile() for AddSelectedFiles() like this:</span></span></span></p>\r\n<p style=\"padding-left:30px\"><span style=\"font-size:x-small\">Using zip As ZipFile = New ZipFile\r\n<p style=\"padding-left:60px\"><span style=\"color:#a31515;font-size:x-small\"><span style=\"color:#a31515;font-size:x-small\">zip.AddSelectedFiles(&quot;name = 'mydatabase.mdb'&quot;</span></span><span style=\"font-size:x-small\">, &quot;c:\\users\\public\\myapp\\&quot;, &quot;&quot;, </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">False</span></span><span style=\"font-size:x-small\">)</span></p>\r\n<p style=\"padding-left:60px\">zip.Save(zipFileName)</p>\r\n<p style=\"padding-left:30px\">End Using</p>\r\n</span></p>\r\n<p>I get a zip file that contains mydatabase.mdb but it is not stored in the 'root' folder of the zip file.&nbsp; Rather, the zip file shows the file to be in &quot;users\\public\\myapp\\&quot;.&nbsp; Note the path stored in the zip file does not begin with a backslash.&nbsp;</p>\r\n<p>I am running Visual Studio 2008.&nbsp; The operating system is 64-bit Vista if that matters.&nbsp; Any advise would be greatly appreciated!</p>\r\n<p>Andy</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-11-10T10:10:07.697-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "255616",
    "ThreadId": "74687",
    "Html": "<p>Just for grins, I tried the following variations:</p>\r\n<p>zip.AddSelectedFiles(&quot;name = 'mydatabase.mdb'&quot;<span style=\"font-size:x-small\">, &quot;c:\\users\\public\\myapp\\&quot;, &quot;blah&quot;, </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">False</span></span><span style=\"font-size:x-small\">)</span></p>\r\n<p>zip.AddSelectedFiles(&quot;name = 'mydatabase.mdb'&quot;<span style=\"font-size:x-small\">, &quot;c:\\users\\public\\myapp\\&quot;, &quot;blah\\&quot;, </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">False</span></span><span style=\"font-size:x-small\">)</span></p>\r\n<p>zip.AddSelectedFiles(&quot;name = 'mydatabase.mdb'&quot;<span style=\"font-size:x-small\">, &quot;c:\\users\\public\\myapp\\&quot;, &quot;\\blah\\&quot;, </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">False</span></span><span style=\"font-size:x-small\">)</span></p>\r\n<p><span style=\"font-size:x-small\">All made no difference.&nbsp; In all cases (as in my original message) I got a zip file containing mydatabase.mdb, but there was an internal zip path recorded of &quot;users\\public\\myapp\\&quot;.&nbsp;&nbsp;It is as if the 3rd parameter is being ignored.&nbsp; </span></p>\r\n<p><span style=\"font-size:x-small\">Andy</span></p>",
    "PostedDate": "2009-11-10T10:16:53.81-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "255620",
    "ThreadId": "74687",
    "Html": "<p>I am using ionic.zip.reduced.dll version 1.8.4.27.</p>",
    "PostedDate": "2009-11-10T10:23:04.727-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "255900",
    "ThreadId": "74687",
    "Html": "<p>Andy, thanks for using the forums.</p>\r\n<p>I understand what you're saying, and I cannot reproduce that behavior. The version of the OS should not matter.&nbsp; Here's the test case I'm using, full source code.&nbsp; Can you please try this and send me the output you get:</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Green\">' AddSelected2.vb</span>\r\n<span style=\"color:Green\">'</span>\r\n<span style=\"color:Green\">' For Andy.</span>\r\n<span style=\"color:Green\">'</span>\r\n<span style=\"color:Green\">' Instructions:</span>\r\n<span style=\"color:Green\">'  1. modify the code to specify the directories and filespecs you want.</span>\r\n<span style=\"color:Green\">'  2. Compile with:</span>\r\n<span style=\"color:Green\">'       c:\\.net3.5\\vbc.exe /R:Ionic.Zip.Reduced.dll /out:AddSelected2.exe AddSelected2.vb</span>\r\n<span style=\"color:Green\">'  3. open command prompt and run it</span>\r\n<span style=\"color:Green\">'</span>\r\n<span style=\"color:Green\">' ------------------------------------------------------------------</span>\r\n<span style=\"color:Green\">'</span>\r\n<span style=\"color:Green\">' Copyright (c) 2009 Dino Chiesa</span>\r\n<span style=\"color:Green\">' All rights reserved!</span>\r\n<span style=\"color:Green\">'</span>\r\n<span style=\"color:Green\">' ------------------------------------------------------------------</span>\r\n\r\n\r\n<span style=\"color:Blue\">Imports</span> System\r\n<span style=\"color:Blue\">Imports</span> Ionic.Zip\r\n\r\n\r\n<span style=\"color:Blue\">Namespace</span> Ionic.TestForAndy\r\n\r\n\r\n<span style=\"color:Blue\">Public</span> <span style=\"color:Blue\">Class</span> AddSelected2\r\n\r\n    <span style=\"color:Blue\">Dim</span> sb <span style=\"color:Blue\">As</span> System.Text.StringBuilder\r\n\r\n    <span style=\"color:Blue\">Private</span> <span style=\"color:Blue\">Sub</span> StdErrorRead(sender <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">Object</span>,  e <span style=\"color:Blue\">As</span> System.Diagnostics.DataReceivedEventArgs)\r\n        <span style=\"color:Blue\">If</span> <span style=\"color:Blue\">Not</span> <span style=\"color:Blue\">String</span>.IsNullOrEmpty(e.Data) <span style=\"color:Blue\">Then</span>\r\n            sb.Append(e.Data)\r\n        <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">If</span>\r\n    <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Sub</span>\r\n\r\n    \r\n    <span style=\"color:Blue\">Public</span> <span style=\"color:Blue\">Sub</span> Run()\r\n\r\n        <span style=\"color:Blue\">Dim</span> zipFileName <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;AddSelected2.zip&quot;</span>\r\n        \r\n        <span style=\"color:Blue\">Dim</span> dirOnDisk1 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;c:\\dinoch\\dev\\ISAPI\\IIRF\\v2.0\\AdminGuide&quot;</span>\r\n        <span style=\"color:Blue\">Dim</span> filespec1 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;IirfGuide.shfbproj&quot;</span>\r\n        <span style=\"color:Blue\">Dim</span> dirInArchive1 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;&quot;</span>\r\n        \r\n        <span style=\"color:Blue\">Dim</span> dirOnDisk2 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;c:\\Desktop\\PhonePhotos&quot;</span>\r\n        <span style=\"color:Blue\">Dim</span> filespec2 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;*.jpg&quot;</span>\r\n        <span style=\"color:Blue\">Dim</span> dirInArchive2 <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:#A31515\">&quot;Photos&quot;</span>\r\n\r\n        <span style=\"color:Blue\">If</span> System.IO.File.Exists(zipFileName)  <span style=\"color:Blue\">Then</span>\r\n            System.IO.File.Delete(zipFileName)\r\n        <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">If</span> \r\n        \r\n        System.Console.WriteLine(<span style=\"color:#A31515\">&quot;Using DotNetZip version: {0}&quot;</span>, ZipFile.LibraryVersion)\r\n        \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.StatusMessageTextWriter = System.Console.Out\r\n            zip.AddSelectedFiles(<span style=\"color:#A31515\">&quot;name = '&quot;</span> &amp; filespec1 &amp; <span style=\"color:#A31515\">&quot;'&quot;</span>, dirOnDisk1, dirInArchive1, <span style=\"color:Blue\">False</span>)\r\n            zip.AddSelectedFiles(<span style=\"color:#A31515\">&quot;name = '&quot;</span> &amp; filespec2 &amp; <span style=\"color:#A31515\">&quot;'&quot;</span>, dirOnDisk2, dirInArchive2, <span style=\"color:Blue\">False</span>)\r\n            zip.Save(zipFileName)\r\n\r\n        <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Using</span>\r\n\r\n        \r\n        <span style=\"color:Green\">'' now, list the contents of the file</span>\r\n        System.Console.WriteLine\r\n        System.Console.WriteLine(<span style=\"color:#A31515\">&quot;Checking the generated zip...&quot;</span>)\r\n        <span style=\"color:Blue\">Dim</span> numErrors <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">Integer</span> = 0\r\n        <span style=\"color:Blue\">Using</span> zip <span style=\"color:Blue\">As</span> ZipFile = ZipFile.Read(zipFileName)\r\n            <span style=\"color:Blue\">Dim</span> e <span style=\"color:Blue\">As</span> ZipEntry\r\n            <span style=\"color:Blue\">For</span> <span style=\"color:Blue\">Each</span> e <span style=\"color:Blue\">In</span> zip\r\n                System.Console.WriteLine(<span style=\"color:#A31515\">&quot;{0}&quot;</span>, e.FileName)\r\n                <span style=\"color:Blue\">Dim</span> d <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span>\r\n                d = System.IO.Path.GetDirectoryName(e.FileName)\r\n                <span style=\"color:Blue\">If</span> (d &lt;&gt; dirInArchive1  <span style=\"color:Blue\">AND</span>  d &lt;&gt; dirInArchive2) <span style=\"color:Blue\">Then</span>\r\n                    System.Console.WriteLine(<span style=\"color:#A31515\">&quot; *** Path on entry {0} is unexpected.&quot;</span>, e.FileName)\r\n                    numErrors = numErrors + 1\r\n                <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">If</span>\r\n            <span style=\"color:Blue\">Next</span>\r\n        <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Using</span>\r\n        \r\n        System.Console.WriteLine(<span style=\"color:Blue\">New</span> <span style=\"color:Blue\">String</span>(Chr(45), 72))\r\n        System.Console.WriteLine(<span style=\"color:#A31515\">&quot;# unexpected paths: {0}&quot;</span>, numErrors)\r\n\r\n    <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Sub</span>\r\n\r\n\r\n    <span style=\"color:Blue\">Public</span> <span style=\"color:Blue\">Shared</span> <span style=\"color:Blue\">Sub</span> Main(<span style=\"color:Blue\">ByVal</span> args <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span>())\r\n        <span style=\"color:Blue\">Try</span> \r\n            <span style=\"color:Blue\">Dim</span> X <span style=\"color:Blue\">as</span> <span style=\"color:Blue\">New</span> AddSelected2()\r\n            X.Run\r\n        <span style=\"color:Blue\">Catch</span> exc1 <span style=\"color:Blue\">As</span> Exception\r\n            Console.WriteLine(<span style=\"color:#A31515\">&quot;Exception: {0}&quot;</span>, exc1.ToString)\r\n        <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Try</span>\r\n    <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Sub</span>\r\n\r\n\r\n<span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Class</span>\r\n\r\n\r\n<span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Namespace</span>\r\n\r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-11-11T02:23:07.01-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "256009",
    "ThreadId": "74687",
    "Html": "\r\n\r\n<div class=Section1>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\">Hi Cheeso.</span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\"> </span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\">I figured out the problem using your test program.  Originally\r\nwhen I ran your test, I set the variable ‘</span><span style=\"font-size:10.0pt;font-family:'Courier New'\">dirOnDisk1’ equal to “</span><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\">\r\nc:\\users\\public\\myapp\\”.  The resulting zip file contained the full path rather\r\nthan putting it into the root of the zip file.  Then, I changed it to “c:\\users\\public\\myapp”\r\nbecause in the original sample you sent to me did not have the ending\r\nbackslash.  It worked!  I would have never guessed to remove the ending\r\nbackslash in the directory designation.</span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\"> </span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\">Andy</span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\"> </span></p>\r\n\r\n<div>\r\n\r\n<div style=\"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in\">\r\n\r\n<p class=MsoNormal><b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">From:</span></b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"> Cheeso\r\n[mailto:notifications@codeplex.com] <br>\r\n<b>Sent:</b> Wednesday, November 11, 2009 4:23 AM<br>\r\n<b>To:</b> andy.pelkey@earthlink.net<br>\r\n<b>Subject:</b> Re: Trying to get the AddSelectedFiles() method to store\r\nrelative path to file [DotNetZip:74687]</span></p>\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">From:\r\nCheeso</span></p>\r\n\r\n<div style=\"margin-bottom:24.0pt\" id=ThreadNotificationPostBody>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">Andy,\r\nthanks for using the forums.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">I\r\nunderstand what you're saying, and I cannot reproduce that behavior. The\r\nversion of the OS should not matter.  Here's the test case I'm using, full\r\nsource code.  Can you please try this and send me the output you get:</span></p>\r\n\r\n<div><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' AddSelected2.vb</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' For Andy.</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' Instructions:</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'  1. modify the code to specify the directories and filespecs you want.</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'  2. Compile with:</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'       c:\\.net3.5\\vbc.exe /R:Ionic.Zip.Reduced.dll /out:AddSelected2.exe AddSelected2.vb</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'  3. open command prompt and run it</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' ------------------------------------------------------------------</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' Copyright (c) 2009 Dino Chiesa</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' All rights reserved!</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">'</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:green\">' ------------------------------------------------------------------</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">Imports</span><span style=\"font-size:11.5pt;color:black\"> System</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">Imports</span><span style=\"font-size:11.5pt;color:black\"> Ionic.Zip</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">Namespace</span><span style=\"font-size:11.5pt;color:black\"> Ionic.TestForAndy</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">Public</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Class</span><span style=\"font-size:11.5pt;color:black\"> AddSelected2</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> sb </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> System.Text.StringBuilder</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">Private</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"> StdErrorRead(sender </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Object</span><span style=\"font-size:11.5pt;color:black\">,  e </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> System.Diagnostics.DataReceivedEventArgs)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Not</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\">.IsNullOrEmpty(e.Data) </span><span style=\"font-size:11.5pt;color:blue\">Then</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            sb.Append(e.Data)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">Public</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"> Run()</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> zipFileName </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;AddSelected2.zip&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> dirOnDisk1 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;c:\\dinoch\\dev\\ISAPI\\IIRF\\v2.0\\AdminGuide&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> filespec1 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;IirfGuide.shfbproj&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> dirInArchive1 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> dirOnDisk2 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;c:\\Desktop\\PhonePhotos&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> filespec2 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;*.jpg&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> dirInArchive2 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"> = </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;Photos&quot;</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"> System.IO.File.Exists(zipFileName)  </span><span style=\"font-size:11.5pt;color:blue\">Then</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            System.IO.File.Delete(zipFileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;Using DotNetZip version: {0}&quot;</span><span style=\"font-size:11.5pt;color:black\">, ZipFile.LibraryVersion)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Using</span><span style=\"font-size:11.5pt;color:black\"> zip </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> ZipFile = </span><span style=\"font-size:11.5pt;color:blue\">New</span><span style=\"font-size:11.5pt;color:black\"> ZipFile</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            zip.StatusMessageTextWriter = System.Console.Out</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            zip.AddSelectedFiles(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;name = '&quot;</span><span style=\"font-size:11.5pt;color:black\"> & filespec1 & </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;'&quot;</span><span style=\"font-size:11.5pt;color:black\">, dirOnDisk1, dirInArchive1, </span><span style=\"font-size:11.5pt;color:blue\">False</span><span style=\"font-size:11.5pt;color:black\">)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            zip.AddSelectedFiles(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;name = '&quot;</span><span style=\"font-size:11.5pt;color:black\"> & filespec2 & </span><span style=\"font-size:11.5pt;color:#A31515\">&quot;'&quot;</span><span style=\"font-size:11.5pt;color:black\">, dirOnDisk2, dirInArchive2, </span><span style=\"font-size:11.5pt;color:blue\">False</span><span style=\"font-size:11.5pt;color:black\">)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            zip.Save(zipFileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Using</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:green\">'' now, list the contents of the file</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        System.Console.WriteLine</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;Checking the generated zip...&quot;</span><span style=\"font-size:11.5pt;color:black\">)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> numErrors </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Integer</span><span style=\"font-size:11.5pt;color:black\"> = 0</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Using</span><span style=\"font-size:11.5pt;color:black\"> zip </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> ZipFile = ZipFile.Read(zipFileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> e </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> ZipEntry</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            </span><span style=\"font-size:11.5pt;color:blue\">For</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Each</span><span style=\"font-size:11.5pt;color:black\"> e </span><span style=\"font-size:11.5pt;color:blue\">In</span><span style=\"font-size:11.5pt;color:black\"> zip</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;{0}&quot;</span><span style=\"font-size:11.5pt;color:black\">, e.FileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> d </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                d = System.IO.Path.GetDirectoryName(e.FileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"> (d &lt;&gt; dirInArchive1  </span><span style=\"font-size:11.5pt;color:blue\">AND</span><span style=\"font-size:11.5pt;color:black\">  d &lt;&gt; dirInArchive2) </span><span style=\"font-size:11.5pt;color:blue\">Then</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                    System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot; *** Path on entry {0} is unexpected.&quot;</span><span style=\"font-size:11.5pt;color:black\">, e.FileName)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                    numErrors = numErrors + 1</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">                </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">If</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            </span><span style=\"font-size:11.5pt;color:blue\">Next</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Using</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:blue\">New</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\">(Chr(45), 72))</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        System.Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;# unexpected paths: {0}&quot;</span><span style=\"font-size:11.5pt;color:black\">, numErrors)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">Public</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Shared</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"> Main(</span><span style=\"font-size:11.5pt;color:blue\">ByVal</span><span style=\"font-size:11.5pt;color:black\"> args </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">String</span><span style=\"font-size:11.5pt;color:black\">())</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Try</span><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            </span><span style=\"font-size:11.5pt;color:blue\">Dim</span><span style=\"font-size:11.5pt;color:black\"> X </span><span style=\"font-size:11.5pt;color:blue\">as</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">New</span><span style=\"font-size:11.5pt;color:black\"> AddSelected2()</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            X.Run</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">Catch</span><span style=\"font-size:11.5pt;color:black\"> exc1 </span><span style=\"font-size:11.5pt;color:blue\">As</span><span style=\"font-size:11.5pt;color:black\"> Exception</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">            Console.WriteLine(</span><span style=\"font-size:11.5pt;color:#A31515\">&quot;Exception: {0}&quot;</span><span style=\"font-size:11.5pt;color:black\">, exc1.ToString)</span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">        </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Try</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\">    </span><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Sub</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Class</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:blue\">End</span><span style=\"font-size:11.5pt;color:black\"> </span><span style=\"font-size:11.5pt;color:blue\">Namespace</span><span style=\"font-size:11.5pt;color:black\"></span></pre><pre style=\"background:white\"><span style=\"font-size:11.5pt;color:black\"> </span></pre></div>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\"> </span></p>\r\n\r\n</div>\r\n\r\n<div style=\"border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in\" id=ThreadNotificationFooter>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">Read\r\nthe <a href=\"http://dotnetzip.codeplex.com/Thread/View.aspx?ThreadId=74687&ANCHOR#Post255900\">full\r\ndiscussion online</a>.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">To\r\nadd a post to this discussion, reply to this email (<a href=\"mailto:DotNetZip@discussions.codeplex.com?subject=[DotNetZip:74687]\">DotNetZip@discussions.codeplex.com</a>)</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">To\r\nstart a new discussion for this project, email <a href=\"mailto:DotNetZip@discussions.codeplex.com\">DotNetZip@discussions.codeplex.com</a></span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">You\r\nare receiving this email because you subscribed to this discussion on CodePlex.\r\nYou can <a href=\"http://www.codeplex.com/site/discussions/thread/unsubscribe/74687\">unsubscribe</a>\r\non codePlex.com.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">Please\r\nnote: Images and attachments will be removed from emails. Any posts to this\r\ndiscussion will also be available online at codeplex.com</span></p>\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n",
    "PostedDate": "2009-11-11T08:08:52.237-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "256039",
    "ThreadId": "74687",
    "Html": "<p>Thanks Andy, sounds like a bug.&nbsp; I'll get that checked out.</p>\r\n<p>In the meantime you are on your way, I guess.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-11-11T09:41:06.49-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "256041",
    "ThreadId": "74687",
    "Html": "\r\n\r\n<div class=Section1>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\">Yes I am able to work around it easily enough.</span></p>\r\n\r\n<p class=MsoNormal><span style=\"font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D\"> </span></p>\r\n\r\n<div>\r\n\r\n<div style=\"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in\">\r\n\r\n<p class=MsoNormal><b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">From:</span></b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"> Cheeso\r\n[mailto:notifications@codeplex.com] <br>\r\n<b>Sent:</b> Wednesday, November 11, 2009 11:41 AM<br>\r\n<b>To:</b> andy.pelkey@earthlink.net<br>\r\n<b>Subject:</b> Re: Trying to get the AddSelectedFiles() method to store\r\nrelative path to file [DotNetZip:74687]</span></p>\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">From:\r\nCheeso</span></p>\r\n\r\n<div style=\"margin-bottom:24.0pt\" id=ThreadNotificationPostBody>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">Thanks\r\nAndy, sounds like a bug.  I'll get that checked out.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">In the\r\nmeantime you are on your way, I guess.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\"> </span></p>\r\n\r\n</div>\r\n\r\n<div style=\"border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in\" id=ThreadNotificationFooter>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">Read\r\nthe <a href=\"http://dotnetzip.codeplex.com/Thread/View.aspx?ThreadId=74687&ANCHOR#Post256039\">full\r\ndiscussion online</a>.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">To\r\nadd a post to this discussion, reply to this email (<a href=\"mailto:DotNetZip@discussions.codeplex.com?subject=[DotNetZip:74687]\">DotNetZip@discussions.codeplex.com</a>)</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">To\r\nstart a new discussion for this project, email <a href=\"mailto:DotNetZip@discussions.codeplex.com\">DotNetZip@discussions.codeplex.com</a></span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">You\r\nare receiving this email because you subscribed to this discussion on CodePlex.\r\nYou can <a href=\"http://www.codeplex.com/site/discussions/thread/unsubscribe/74687\">unsubscribe</a>\r\non codePlex.com.</span></p>\r\n\r\n<p><span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray\">Please\r\nnote: Images and attachments will be removed from emails. Any posts to this\r\ndiscussion will also be available online at codeplex.com</span></p>\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n",
    "PostedDate": "2009-11-11T09:49:12.077-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "256042",
    "ThreadId": "74687",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=9176\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-11-11T09:51:30.093-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1070591",
    "ThreadId": "74687",
    "Html": "I know this is a very old post but feel the need to resurrect it.\r<br />\n<br />\nJust like Apelkey I am finding the same issue:  the relative path is copied into the zip file. However I have the latest patches and software and is 4 years later and got it again.\r<br />\nCertainly without this link I would not had found out what my bug was.\r<br />\n<br />\nThere is still a bug if this condition is met on looking at the code:\r<br />\n<br />\ndirOndisk1 does not handle paths returned by unix machines. I happened to get the relative path where the files needed to be zipped from a box that contains those remote paths.  The path returned contained no ending slash but had a forward slash in the middle of the string as in  &quot;...\\folder1\\folder2\\folder3/folder4/folder5&quot;\r<br />\nOnce I replaced all &quot;/&quot; for &quot;\\&quot; in the string the code works great.\r<br />\n<br />\nWould be nice to include this in a patch because to find this issue is almost impossible. Thanks for this post indeed.<br />\n",
    "PostedDate": "2013-07-19T10:54:47.033-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]