title: The same volume can not be used as both the source and destination
body: <p>I'm creating split archives using the following code:</p>
  
  <pre><code>string filename = "FileName.pdf";
  using (ZipFile zip = new ZipFile())
  {
      zip.UseZip64WhenSaving = Zip64Option.Default;
      zip.CompressionLevel = Ionic.Zlib.CompressionLevel.Default;
      using (FileStream stream = new FileStream(temp, FileMode.Open))
      {
          zip.AddEntry(filename, stream);
          zip.MaxOutputSegmentSize = settings.AttachmentSize * (1024 * 1024);
          zip.Save(zipFileName);
      }
  }
  </code></pre>
  
  <p>The code above generates 3 files: <code>file.zip, file.z01 and file.z02</code>.
  When I right-click that zip file and select <code>Extract All</code> (not using WinRAR or other zipping software to extract, just the built-in Windows zip) it gives me the following error:</p>
  
  <blockquote>
    <p>The same volume can not be used as both the source and destination</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/I9RGE.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/4b8ld.png" alt="enter image description here"></p>
  
  <p>What's weird is that it only happens on the first time I try to extract the files, the succeeding extractions are OK so it must be how the files were zipped in the first place. </p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>The same thing happens even if I extract to a different folder</p>
  
  <p>There have been discussions with regards to this issue on the DotNetZip Codeplex site, but it seems the issue has not been resolved yet </p>
  
  <p><a href="http://dotnetzip.codeplex.com/discussions/239172" rel="noreferrer">http://dotnetzip.codeplex.com/discussions/239172</a></p>
  
  <p><a href="http://dotnetzip.codeplex.com/discussions/371005" rel="noreferrer">http://dotnetzip.codeplex.com/discussions/371005</a></p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>Looking at the doc for the <a href="http://www.nudoq.org/#!/Packages/DotNetZip/Ionic.Zip/ZipFile/P/MaxOutputSegmentSize" rel="noreferrer">MaxOutputSegmentSize</a> property, it is quoted: </p>
  
  <blockquote>
    <p>I don't believe Windows Explorer can extract a split archive.</p>
  </blockquote>
  
  <p>There's no further explanation though as to why. I consider this to be a false-positive since as mentioned above, </p>
  
  <blockquote>
    <p>it only happens on the first time I try to extract the files, the
    succeeding extractions are OK</p>
  </blockquote>
  
  <p>I'm using Windows 8.1 64-bit.</p>