[
  {
    "Id": "865188",
    "ThreadId": "366623",
    "Html": "\r\n<p>Used this line:</p>\r\n<p>e:\\batch\\zipsplitDir.ps1 f:\\TO\\BAD\\Test20120711.zip e:\\\\bcp Iszx!99Ka7!CSedFktbkoF4wp6UoWS7&#43;d_:5bf298@p0@NXVzdWrY9vR5tDF!u6waDRm9UTqGrsy6igN1svOT89ir3rf5R</p>\r\n<p>&nbsp;to run the below Powershell code on Windows 2003 R2 64-bit&nbsp;Server:<br>\r\n&nbsp;<br>\r\n&nbsp;Param($Param1,$Param2, $Param3)<br>\r\n$StopWatch=new-object system.diagnostics.stopwatch<br>\r\n$stopWatch.start()</p>\r\n<p># PARAM1 NameOfSpits<br>\r\n# Param2 NameOfDirectory<br>\r\n# Param3 Name of Pass</p>\r\n<p>$Param1<br>\r\n$Param2<br>\r\n$Param3<br>\r\n[System.Reflection.Assembly]::LoadFrom(&quot;E:\\DotNetZip\\Ionic.Zip.dll&quot;)<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile =&nbsp; new-object Ionic.Zip.ZipFile<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.Encryption = [Ionic.Zip.EncryptionAlgorithm]::WinZipAes256<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.Password = &quot;$Param3&quot;<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.UseZip64WhenSaving = [Ionic.Zip.Zip64Option]::AsNecessary<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.MaxOutputSegmentSize = 1073741824<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.AddDirectory(&quot;$Param2&quot;)<br>\r\n#&nbsp;&nbsp; $e=$zipfile.addfile(&quot;$Param2&quot;)<br>\r\n&nbsp;&nbsp;&nbsp; $zipfile.Save(&quot;$Param1&quot;)<br>\r\n&nbsp;&nbsp;&nbsp; <br>\r\n$stopWatch.Stop()<br>\r\n$ts = $stopWatch.Elapsed<br>\r\n$ElapsedTime = [system.String]::Format(&quot;{0:00}:{1:00}:{2:00}.{3:00}&quot;,&nbsp; <br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ts.Hours, $ts.Minutes, $ts.Seconds,&nbsp;\r\n<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ts.Milliseconds / 10);&nbsp;\r\n<br>\r\n&quot;Runtime = $elapsedTime&quot;&nbsp;</p>\r\n<p><br>\r\nTook approximately 45 minutes to produce a 12 piece zip file.</p>\r\n<p>Open the zip file with WinZIP and tried to extract zip file and got message:</p>\r\n<p>Error #17; bad Zip file offset (Error local header signature not found): disk #1 offset:57007199.<br>\r\nWould you like WinZip to try to continue with the next file?&nbsp; Yes or no <br>\r\nYes does allow you to keep unziping files.</p>\r\n<p><br>\r\nBCP contained 292 objects 105 GB<br>\r\nsome object small the larges object 58GB.</p>\r\n<p>Is there something I can do to properly create the zip for use with WinZIP?</p>\r\n<p>I notice that the files are not in sequential order by date time:</p>\r\n<p>07/13/2012&nbsp; 12:24 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z01<br>\r\n07/13/2012&nbsp; 12:28 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z03<br>\r\n07/13/2012&nbsp; 12:31 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z04<br>\r\n07/13/2012&nbsp; 12:34 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z05<br>\r\n07/13/2012&nbsp; 12:37 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z06<br>\r\n07/13/2012&nbsp; 12:39 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z02<br>\r\n07/13/2012&nbsp; 12:41 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z07<br>\r\n07/13/2012&nbsp; 12:42 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z08<br>\r\n07/13/2012&nbsp; 12:45 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z09<br>\r\n07/13/2012&nbsp; 12:46 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z10<br>\r\n07/13/2012&nbsp; 12:49 PM&nbsp;&nbsp;&nbsp;&nbsp; 1,073,741,824 Test20120711.z11<br>\r\n07/13/2012&nbsp; 12:49 PM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 636,144,121 Test20120711.zip<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12 File(s) 12,447,304,185 bytes</p>\r\n<p><br>\r\nI had to use WinZIp to complete the archive instead.</p>\r\n<p>Otherwise --Great software!</p>\r\n<p>Love that you can script in&nbsp; Powershell wish there were more examples<br>\r\nSeem faster that the old version of Winzip I currently have access to.</p>\r\n<p><br>\r\nThanks for everything!</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2012-07-13T12:00:24.207-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]