[
  {
    "Id": "870088",
    "ThreadId": "371005",
    "Html": "\r\n<p>I get the error in Windows 7 zip and 7zip when exctracting splitted archive from directory. I set max size to 5 mb. When archive is smaller everything goes fine, but if splitted only win-rar can extract the archive.</p>\r\n<p>My code is very simple (as in examples):</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">public</span> <span style=\"color:blue\">string</span> DoSplit(<span style=\"color:blue\">int</span> maxSize)\n{\n            <span style=\"color:blue\">using</span> (ZipFile zip = <span style=\"color:blue\">new</span> ZipFile())\n            {\n                zip.AddDirectory(_workingPath);\n                zip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;\n                zip.MaxOutputSegmentSize = maxSize; //5mb\n\n                DirectoryInfo commonWorkingDir =  Directory.GetParent(_workingPath);\n                DirectoryInfo workingDir = <span style=\"color:blue\">new</span> DirectoryInfo(_workingPath);\n\n                _zippedDirectory = Path.Combine(commonWorkingDir.FullName, workingDir.Name &#43; zippedSuffix);\n                Directory.CreateDirectory(_zippedDirectory);\n                zip.Save(<span style=\"color:green\">_zippedDirectory &#43; </span><span style=\"color:#a31515\">&quot;/attachments.zip&quot;</span>);\n            }\n\n            <span style=\"color:blue\">return</span> _zippedDirectory;\n        }\n</pre>\r\n</div>\r\n",
    "PostedDate": "2012-07-16T12:48:02.643-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]