title: How to compress each subfolder in a folder into a separate RAR archive using WinRAR?
body: <p>I am really new to batch file coding and need your help.</p>
  
  <p>I've these directories:</p>
  
  <pre><code>c:\rar\temp1\xy.jpg
  c:\rar\temp1\sd.jpg
  c:\rar\temp1\dd.jpg
  
  c:\rar\temp2\ss.jpg
  c:\rar\temp2\aa.jpg
  c:\rar\temp2\sd.jpg
  
  c:\rar\temp3\pp.jpg
  c:\rar\temp3\ll.jpg
  c:\rar\temp3\kk.jpg
  </code></pre>
  
  <p>And I want to compress them to this</p>
  
  <pre><code>c:\rar\temp1\temp1.rar
  c:\rar\temp2\temp2.rar
  c:\rar\temp3\temp3.rar
  </code></pre>
  
  <p>How could this be done using WinRAR?</p>