title: How to check if a file is present in a ZIP folder using Command Prompt?
body: <p>I want to check if main.lua is present in a ZIP Folder before trying to extract it. Also, I use 7-zip for archive things in command prompt. I have something like this, but I want to know if it can be simplified:</p>
  
  <pre><code>if exist "%temp\main.lua" (
  del "%temp\main.lua"
  )
  7z e "(ZIP Folder)" "-o%temp%"
  if exist "%temp\main.lua" (
  rem main.lua is present in the ZIP folder.
  ) else (
  rem main.lua is NOT present in the ZIP folder.
  )
  </code></pre>
  
  <p>I would actually prefer a VBScript doing it since not everyone has 7-zip.</p>