Use ACDIR (link in first post). If you want to both have a FLAC image and individual mp3 files for your portable, you should use something like:
[flaclame-image]
DESCRIPTION=Create FLAC and LAME -V8 mp3 files
ImageExt=flac
CuesheetExt=flac.cue
WaveGainAnalysis=1
WaveGainExtraOpt=
outdir1=E:\My Music\_Portable\$album$
1=>"C:\Programs\Batchenc\wapet.exe" "@image@" -f "CUESHEET=@cuesheet@" "C:\Programs\Batchenc\flac.exe" -8 -f -V --replay-gain "@source@" -o "@image@" -T ARTIST="@artist@" -T ALBUM="@album@" -T DATE="@year@" -T GENRE="@genre@" -T COMMENT="FLAC 1.1.2 + REACT"
2=>if errorlevel 1 pause
3=>"C:\Programs\Batchenc\acdir.exe" --overwrite --output "@outdir1@\$n. $~t - $~a.mp3" --pipe "C:\Programs\Batchenc\lame397a11.exe -V8 --vbr-new --ignore-tag-errors --add-id3v2 --pad-id3v2 --scale @scale@ --ta $#a --tl $#T --tt $#t --tn $#n --ty $#r{DATE} --tg $#r{GENRE} --tc $qLAME 3.97a11 -V8 vbr-new + REACT$q $x - $#o" "@sourcecuesheet@"
4=>if errorlevel 1 pause
5=>del "@source@"
You can't select individual tracks with this method - all tracks will be encoded. However, you can use ACDIR anytime later using only the flac image to encode e.g. ogg track files. Put the following in a file image2ogg.bat:
@"C:\Programs\Batchenc\acdir.exe" --output "$n - $~t - $~a.ogg" --pipe "C:\Programs\Batchenc\oggenc2.exe --title $#t --artist $#a --album $#T --tracknum $#n #ifdef$r{GENRE}--genre $#r{GENRE}#endif #ifdef$r{DATE}--date $#r{DATE}#endif -o $#o $x -" %1 %2 %3 %4 %5 %6 %7 %8 %9
And run it:
mage2ogg.bat somealbum.flac.cue
You can also encode individual tracks from the album with the acdir option --track n-m.
PS: None of the above is tested, so take care.
/Edit: Did some testing, and found that the executable which is piped from ACDIR does not accept quoting with $q. (Updated code block). However $q can be used to surround e.g. the comment tag, which is strange. Nyaochi - you may look at this. Another thing which would be great is if you could return error codes from acdir on error (so that "if errorlevel 1 pause" kicks in).