Author Topic: Batch Conversion  (Read 6352 times)


  • Guest
Batch Conversion
« on: 8 Jul '05 - 22:00 »
How would you go about accomplishing this task.  Multiple modules, compressed, residing in multiple directories, and copied back to their respective directories as mo3 (perhaps deleting the source afterward).

I have a huge collection of mods, and I think this might save me a little bit of space  ;)


  • Posts: 1169
Re: Batch Conversion
« Reply #1 on: 8 Jul '05 - 23:01 »
With a bit of creative batch file work.

This needs Windows 2000, XP, or 2003 to work. It might work on Windows NT, but won't work on 95/98/ME.

Pull up a command prompt and change to the directory containing mo3enc.exe. Then type the following, replacing #root# with the root directory of the modules (e.g. D:\stuff\modules - remember to use quotes " if the path contains spaces!), and #options# with any options for mo3enc.exe.

Code: [Select]
FOR /R #root# %I IN (*.it *.mod *.s3m *.xm) DO mo3enc.exe #options# "%~fI"

That's it! That will recursively iterate through every file and folder in #root#, and run mo3enc on any .it/.mod/.s3m/.xm files in there. It *won't* work if the files are compressed with a third-party program (e.g. winzip or winrar).

(if you're ever bored, type "FOR /?" at a command prompt. You'll be suprised at what it can do)


  • Guest
Re: Batch Conversion
« Reply #2 on: 9 Jul '05 - 11:08 »
Thanks Boggy.  It works perfectly.