title: How can I split a binary file into chunks with certain size with batch script without external software?
body: <p>There are many reasons to want to split file into chunks - mainly for network transfer  (e.g. e-mail attachments) but I'm sure there are scenarios that could require such thing I cannot imagine.
  So how can a file be split into chunks that can be easily assembled back to original file (including non-windows systems) ?</p>
  
  <p>What are possibilities:</p>
  
  <ol>
  <li><a href="http://ss64.com/nt/makecab.html" rel="nofollow">MAKECAB</a> - the built-in Windows archiver - it can compress file and
  split it , but will be difficult to assemble the file on non-Windows
  machine.</li>
  <li>WSH/Jscript/VBscript - binary files can be easy processed with ADODB
  Streams.And according to me JScript is preferable.</li>
  <li>.NET/JScript.net/VB/C# - As .NET comes with command line compilers
  it also can be used for this purpose . .NET binary streams probably
  are the best in this case that it can offer .</li>
  <li><a href="http://ss64.com/nt/certutil.html" rel="nofollow">CERTUTIL</a> - as it can convert a binary file to HEX and back it's
  possible to process the HEX data with batch file and split the file
  to chunks.</li>
  </ol>
  
  <p>Probably GZipStreams can be used also as they allows
      reading bytes (and offer portable compression !).I promise an upvote If anyone succeed with this (or
      offer any other method) :-)</p>