title: How do I unzip files en masse but skip and log errors
body: <p>I have a folder of about 3000 zip files
  I need to extract them into sub-folders named for the name of the file (extract here behaviour).
  I am using 7-Zip.</p>
  <p>My problem is that some of these files are password protected and some are corrupt.
  I need to be able to extract the whole lot en-masse and have a log of those that failed.</p>
  <p>7-Zips behaviour is to stop on error, and I can't find a way around this.</p>
  <p>I am imagining some sort of Batch file is going to be needed.</p>
  <p>I did see this:</p>
  <pre><code>for i in *; do mkdir &quot;$i.extracted&quot;; (cd &quot;$i.extracted&quot; &amp;&amp; 7z x &quot;../$i&quot;) || echo &quot;Error with $i&quot;; done
  </code></pre>
  <p>But this was in a linux specific post, and I need to run in a windows environment. The above just tells me that i is unexpected when run from a command prompt.</p>
  <p>Any help gratefully appreciated.</p>
  <p>Iain</p>