title: Extract a .rar file using a batch file
body: <p>I am trying to create a batch file which extracts a .rar file using WinRAR
  to C:\Program Files\</p>
  
  <p>Please help </p>
  
  <p>I tried the following code </p>
  
  <pre><code>set rar=%ProgramFiles%\WinRAR\RAR.exe
  
  set unrar=%programFiles%\WinRAR\UnRAR.exe
  </code></pre>
  
  <p>and then you compress like this:</p>
  
  <pre><code>"%rar%" a "drop location" "target location"
  </code></pre>
  
  <p>or decompress like this:</p>
  
  <pre><code>%unrar% e "target location"
  </code></pre>
  
  <p>but I don't seem to see an option here which shows where the target rar file is. Please help me.</p>