title: Command Line Zipping with Windows
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/30211/can-windows-built-in-zip-compression-be-scripted">Can Windows&#39; built-in ZIP compression be scripted?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to Zip a file through the command line for an SSIS package. I know 7-Zip is a great open source tool to use, but the server I will be deploying too does not have 7-Zip.</p>
  
  <p>The only tools I have are the Windows Compress.exe and Compact.exe.
  However when trying this it seems to create invalid/corrupt zip files.</p>
  
  <pre><code>This is what I have tried:
  Compress -z c:\test.xls c:\test.zip
  Compress -zx c:\test.xls c:\test.zip
  Compress c:\test.xls c:\test.zip
  </code></pre>