Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder structure like this:

-dir1
    -subdir1
    -subdir2
        -file1.wav
        -file2.wav
-dir2
    -etc...

Inside the folders are thousands of audio files that need to be converted. How can I convert them all at once to mp3? I would like to use the same filenames and keep them in the same folders. The end result would like this:

-dir1
    -subdir1
    -subdir2
         -file1.wav
         -file1.mp3
         -file2.wav
         -file2.mp3
share|improve this question
up vote 1 down vote accepted

Ok, I got it done with the following command from within the root directory:

FOR /R %I IN (*.wav) DO sox %I %~pnI.mp3
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.