title: Using 7-zip to add folders to separate archive (windows)
body: <p>With Winrar I can use this command for create archives for each folder</p>
  
  <pre><code>for folder in */; do rar a -m0 -r "${folder%/}.rar" "$folder"; done
  </code></pre>
  
  <p>I use windows and I want cloning this command using 7z Console because software is more strong. <br>
  I try also this batch</p>
  
  <pre><code>@ECHO OFF
  FOR %%A IN (*) DO "c:\program files\7-zip\7z.exe" a -mx9 -m0=lzma2:d256m "%%~nA.7z" "%%A"
  </code></pre>
  
  <p>but archive me only files, not separated folders.</p>