title: Batch Processing of Multiple Files in Multiple Folders
body: <p>I'm using the SoX sound editing command line tool. I'm trying to create a batch file that will allow me to drag multiple folders onto it and have the file process all the mp3 files within the folders, then output them into the converted folder, arranged into folders named the same as the ones originally dragged on. I currently have:</p>
  
  <pre><code>cd %~dp0
  mkdir converted
  FOR %%A IN (%*) DO sox %%A -c 1 "converted/%%~nxA" mixer -1
  pause
  </code></pre>
  
  <p>This allows me to drag files on, but not whole folders. All I really need to do is take it up a level. As you may have guessed, I have very little batch processing knowledge so an explanation would be greatly beneficial.</p>
  
  <p>Thank you for your time!</p>