title: Batch How to extract multiple zip files to their origin folder with 7zip?
body: <p>I have multiple zip files in different folders and want to extract them into the folder they are in.</p>
  
  <pre><code>Parent Folder
      -Folderwithzip1
          --zip1
          --[Content from zip1 should land here]
      -Folderwithzip2
          --zip2
          --[Content from zip2 should land here]
  </code></pre>
  
  <p>I've tried </p>
  
  <pre><code>for /r "C:\zip" %f in (*.zip) do do 7z x -o "%~dpf" "%f"
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>FOR /F "USEBACKQ tokens=*" %%F IN (`DIR /b *.zip`) DO ("C:\Program Files\7-Zip\7z.exe" e "%%F" -y)
  </code></pre>
  
  <p>but that does only extract the files in the folder where the batch file sits.</p>
  
  <p>But the batch does not even start.</p>