title: How to use Windows Batch File to mass unzip files and saving them in specific folders?
body: <p>I got the code to mass unzip from this <a href="https://stackoverflow.com/questions/17077964/windows-batch-script-to-unzip-files-in-a-directory">link</a>.  But it unzips everything in the folder where the batchfile exists. I want it to unzip it to specific folders or its individual folders. </p>
  
  <p>Note: my bz2 files are in various folders outside the folder where the batchfile exists.</p>
  
  <p>Here's the script that i used :</p>
  
  <pre><code>for /R "C:\Users\victor\Desktop\MASTERS\color feret\disc 1\data\images" %%I in ("*.bz2")
  do ("%ProgramFiles%\WinRAR\WinRAR.exe" x -y -o"%%~dpnI" "%%~fI")
  </code></pre>
  
  <p>Can someone enlighten me how to do it?
  And also if possible, can anyone explain to me what are the arguments for? "x , -y -o %%dpnI " etc. Thanks</p>