:: :: Batch file made by: :: Jeroen_JRP - 2009 :: @echo off if NOT EXIST unxwb.exe goto MissingUnxwb if NOT EXIST xWMAEncode.exe goto MissingEncode if NOT EXIST *.xwb goto NoXWB for /r . %%i IN (*.xwb) do ( md %%~ni\Original md %%~ni\Converted_WAV unxwb -d %%~ni\Original "%%i" ) echo :::::::PLEASE WAIT - CONVERTING TO .WAV::::::: for /r . %%i IN (*.xwb) do ( echo Processing %%~ni... cd %%~ni\Original for /r . %%i IN (*.xwm) do ..\..\xWMAEncode "%%i" ..\Converted_WAV\%%~ni.wav cd..\.. ) echo. echo ::::::::::::::::::::::::::::::::::::::: echo :::::::::::::::: DONE! :::::::::::::::: echo ::::::::::::::::::::::::::::::::::::::: pause exit :MissingUnxwb echo. echo -------------------------------------------------- echo -- unxwb.exe is not found in this directory. -- echo -- This file is needed to extract the xwb files -- echo -------------------------------------------------- echo. pause exit :MissingEncode echo. echo ---------------------------------------------------- echo -- xWMAEncode.exe is not found in this directory. -- echo -- This file is needed to convert the xwm files -- echo ---------------------------------------------------- echo. pause exit :NoXWB echo. echo ----------------------------------------------------------- echo -- There are no .xwb files to extract in this directory. -- echo ----------------------------------------------------------- echo. pause exit