View Single Post
Old 10th August 2013, 11:25   #6  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
>It doesn't work because the %1 doesn't refer to the transcoded WAVE file.
Instead of
lame ... %1 "%~dpn1.mp3"
use
lame ... "%~dpn1.wav" "%~dpn1.mp3"

See Path Manipulation in a Batch File

BTW, using "%~dpnx1" in place of %1 enforces quote wrapping instead of trusting the OS to do it.
raffriff42 is offline   Reply With Quote