title: Catch an error inside a batch file (7-zip)
body: <p>I have a batch file in which I execute the following line to list the contents of an archive:</p>
  
  <pre><code>"\Program Files\7-Zip\7z.exe" l "\Backup Google Docs.7z"
  </code></pre>
  
  <p>The archive is intentionally corrupted.</p>
  
  <p>cmd.exe displays this:</p>
  
  <p><img src="https://i.stack.imgur.com/YFK1U.jpg" alt="enter image description here"></p>
  
  <p>How can I catch this error in my code?</p>