title: PowerShell: move files to zip with System.IO.Compression.FileSystem
body: <p>How can I <em>move log</em> files to zip archives with System.IO.Compression.FileSystem in PowerShell?</p>
  
  <p>I have more folders with log files per application:</p>
  
  <pre><code>app1logfolder
  |-app1_20130507.log
  |-app1_20130508.log
  |-app1_20130509.log
  
  app2logfolder
  |-app2_20130507.log
  |-app2_20130508.log
  |-app2_20130509.log
  </code></pre>
  
  <p>and so on.. And I want to process these files into a zip archive per day.</p>
  
  <pre><code>logs_20130507.zip
  |-app1_20130507.log
  |-app2_20130507.log
  
  logs_20130508.zip
  |-app1_20130508.log
  |-app2_20130508.log
  
  logs_20130509.zip
  |-app1_20130509.log
  |-app2_20130509.log
  </code></pre>