title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Newbie conversion question on Win98 box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WallyWalters

    • Oct 2002
    • 27

    Newbie conversion question on Win98 box

    I need to convert some MP3s to WMAs on a Windows 98 machine that has dBpoweramp 9 on it, including the WMA 7.1/8 codec and WM8EUtil.

    Is there any way using these tools to write an old-school DOS batch file command converting "song.mp3" to "song.wma?"
  • WallyWalters

    • Oct 2002
    • 27

    #2
    Re: Newbie conversion question on Win98 box

    Nevermind; this batch file should handle it.

    @echo off
    cls
    for /f "tokens=*" %%x in ('dir /b *.mp3') do (
    if not exist "%%x" goto end
    LAME --decode "%%x" "%%~nx.wav"
    if errorlevel 0 del "%%x"
    WM8EUtil -input "%%~nx.wav" -output "%%~nx.wma"
    del "%%~nx.wav"
    )

    :end
    exit

    Comment

    Working...

    ]]>