If you save the following code as a bat file and double click it you will see it in action:
@ECHO OFF
SET AlbumArtist=Test Artist
SET userText=--user-text $q[album artist]%AlbumArtist%$q
ECHO %userText%
ECHO.
PAUSE
With this in mind something else must be adversely affecting your config.
This works as expected so I assume it's a config problem. Here's the entire config just in case.
@echo off
chcp 1252
title REACT - "@album@"
REM ================== USER SETTINGS ======================
rem ** To archive a CD as one large "image", you must set
rem ** ImageExt=... in the REACT.ini file (Press Alt-F2).
rem ** This will set the @imageext@ variable. Extensions
rem ** currently supported: flac, wv, mp3. Set to 'wav'
rem ** for no image archiving (default).
REM ---- Enable/disable additional track formats:
rem ** Splits the wav-image into tracks during encoding, using ACDIR.
rem ** Flac requires flac.exe/metaflac.exe (v1.1.3)
rem ** NeroAac requires NeroAacEnc.exe/NeroAacTag.exe/AacGain.exe.
rem ** OggEnc2 requires OggEnc2.exe/VorbisGain.exe.
set Flac=0
set Wavpack=0
set LameMP3=1
set NeroAac=0
set OggEnc2=0
REM ---- General settings ----
set Debug=0
rem ** I prefer applying album gain 92dB to get a reasonable
rem ** volume for my DAP. The RG tags are still relative
rem ** to 89dB SPL, i.e. album gain will be about -3.0dB.
set ReplayGain=1
set ApplyMp3AacAlbumGain=1
set AdjustMp3AacAlbumGain_dB=+0.0
REM ---- Encoder options ----
set Flac_opt=-5 -f
set Wavpack_opt=-hmy
set LameMP3_opt=-V4 --vbr-new --noreplaygain --nohist
rem ** Nero LC-AAC @ ~ 90kbps - great for e.g. iPods:
set NeroAac_opt=-lc -q 0.22
set OggEnc2_opt=-q 3.0
set Flac_ver=1.1.3b2
set LameMP3_ver=3.97
set NeroAac_ver=1.0.0.2
REM ---- Output directories and track names ----
set OutRoot=H:\TAGZ
if @various@==0 set AlbumArtist=$cdartist$
if @various@==1 set AlbumArtist=Various Artists
rem ** Image dirs:
set Flac_ImageDir=%OutRoot%\Flac-Images\%AlbumArtist%
set Wavpack_ImageDir=%OutRoot%\Wavpack-Images\%AlbumArtist%
set MP3_ImageDir=%OutRoot%\MP3-Images\%AlbumArtist%
rem ** Track dirs:
set Flac_TrackDir=%OutRoot%\Flac\%AlbumArtist%\[$year$] $album$
set Wavpack_TrackDir=%OutRoot%\Wavpack\%AlbumArtist%\[$year$] $album$
REM set MP3_TrackDir=%OutRoot%\MP3\%AlbumArtist%\[$year$] $album$
set AAC_TrackDir=%OutRoot%\AAC\%AlbumArtist%\[$year$] $album$
set OGG_TrackDir=%OutRoot%\OGG\%AlbumArtist%\[$year$] $album$
REM set ** MP3_TrackDir
IF @various@==1 GOTO Various
REM CD is not VA
SET MP3_TrackDir=%OutRoot%\$cdartist$\$album$
GOTO Complete
:Various
IF @genre@==Soundtrack GOTO Soundtrack
REM CD is VA but not a soundtrack
SET MP3_TrackDir=%OutRoot%\Various Artists\Collections\$album$
GOTO Complete
:Soundtrack
REM CD is both VA and a soundtrack
SET MP3_TrackDir=%OutRoot%\Various Artists\Soundtracks\$album$
:Complete
rem ** Track names (for ACDIR):
if @various@==0 set TrackName=[$n] $~t
if @various@==1 set TrackName=[$n] $~t ($~a)
REM ============== BEGIN MAIN SCRIPT ==================
if %Debug%==1 echo on
set add_rg=%ReplayGain%
set add_meta=%add_rg%
set add_cover=0
if %ReplayGain%==0 goto end_RG
set Flac_RG=--replay-gain
set MetaFlac_RG=--add-replay-gain
set MetaMp3_RG=--replay-gain
:end_RG
if %ApplyMp3AacAlbumGain%==0 goto end_apply_AG
set AacGain_RG=/a /o /c /d %AdjustMp3AacAlbumGain_dB%
set MetaMP3_RG=--apply-gain album%AdjustMp3AacAlbumGain_dB%
set add_rg=1
set add_meta=1
:end_apply_AG
if not exist "@cover@" goto end_cover
set Flac_cover=--picture="|image/jpeg|||@cover@"
set MetaFlac_cover=--import-picture="|image/jpeg|||@cover@"
set MetaMP3_cover=--pict "{3}@cover@"
set AacTag_cover=-add-cover:front:"@cover@"
set add_cover=1
set add_meta=1
:end_cover
if @various@==0 (
set ArtistField=artist
set MP3ArtistField=TPE1
) else (
set ArtistField=album artist
set MP3ArtistField=TPE2
)
REM ---- Image ----
if not "@imageext@"=="flac" goto end_flac_image
set dest=%Flac_ImageDir%
if not exist "%dest%" mkdir "%dest%"
@tools@\flac.exe %Flac_opt% %Flac_RG% %Flac_cover% -T "%ArtistField%=@cdartist@" -T "album=@album@" -T "totaltracks=@numtracks@" -T "date=@year@" -T "genre=@genre@" -T "comment=Ripped with EAC/REACT" -T encoded-by="%USERNAME%" --tag-from-file="cuesheet=@cuesheet@" --tag-from-file="eaclog=@eaclog@" "@source@" -o "@image@"
move "@image@" "%dest%"
copy "@cuesheet@" "%dest%"
if %add_cover%==1 copy "@cover@" "%dest%\@basename@.jpg"
:end_flac_image
if not "@imageext@"=="wv" goto end_wavpack_image
set dest=%Wavpack_ImageDir%
if not exist "%dest%" mkdir "%dest%"
@tools@\wavpack.exe %Wavpack_opt% -w "%ArtistField%=@cdartist@" -w "album=@album@" -w "totaltracks=@numtracks@" -w "year=@year@" -w "genre=@genre@" -w "comment=Ripped with EAC/REACT" -w "cuesheet=@@cuesheet@" -w "eaclog=@@eaclog@" "@source@" "@image@"
if %ReplayGain%==1 @tools@\wvgain.exe -a "@image@"
title REACT - "@album@"
move "@image@" "%dest%"
copy "@cuesheet@" "%dest%"
if %add_cover%==1 copy "@cover@" "%dest%\@basename@.jpg"
:end_wavpack_image
if not "@imageext@"=="mp3" goto end_mp3_image
set dest=%MP3_ImageDir%
if not exist "%dest%" mkdir "%dest%"
@tools@\lame.exe %LameMP3_opt% "@source@" "@image@"
@tools@\metamp3.exe %MetaMP3_RG% %MetaMP3_cover% --frame %MP3ArtistField%:"@cdartist@" --album "@album@" --track @numtracks@ --year "@year@" --genre "@genre@" --comment "Ripped with EAC/REACT" --frame TENC:"%USERNAME%" --frame TSSE:"LAME %LameMP3_ver% %LameMP3_opt%" "@image@"
move "@image@" "%dest%"
copy "@cuesheet@" "%dest%"
if %add_cover%==1 copy "@cover@" "%dest%\@basename@.jpg"
:end_mp3_image
REM ---- Tracks ----
if %Flac%==0 goto end_flac_tracks
set dest=%Flac_TrackDir%
if @various@==1 set Flac_VA_tag=-T $qalbum artist=%AlbumArtist%$q
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.flac" --pipe "title $n/$N flac $#T & @tools@\flac.exe %Flac_opt% %Flac_VA_tag% -T artist=$#a -T album=$#T -T title=$#t -T tracknumber=$n/$N -T date=$q@year@$q -T genre=$q@genre@$q -T comment=$qRipped with EAC/REACT$q -T encoded-by=$q%USERNAME%$q - -o $#o" "@sourcecuesheet@"
pushd "%dest%"
if %add_meta%==1 @tools@\Glob.exe -v -c @tools@\metaflac.exe %MetaFlac_RG% %MetaFlac_cover% *.flac
copy "@eaclog@" "EAClog.txt"
if %add_cover%==1 copy "@cover@" "folder.jpg"
if exist "@albumfile@.[*].cue" copy "@albumfile@.[*].cue" .
popd
:end_flac_tracks
if %Wavpack%==0 goto end_wavpack_tracks
set dest=%Wavpack_TrackDir%
if @various@==1 set Wavpack_VA_tag=-w $qalbum artist=%AlbumArtist%$q
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.wv" --pipe "@tools@\wavpack.exe %Wavpack_opt% %Wavpack_VA_tag% -w artist=$#a -w album=$#T -w title=$#t -w track=$n/$N -w year=$q@year@$q -w genre=$q@genre@$q -w comment=$qRipped with EAC/REACT$q - $#o" "@sourcecuesheet@"
pushd "%dest%"
if %ReplayGain%==1 @tools@\wvgain.exe -a *.wv
copy "@eaclog@" "EAClog.txt"
if %add_cover%==1 copy "@cover@" "folder.jpg"
if exist "@albumfile@.[*].cue" copy "@albumfile@.[*].cue" .
popd
title REACT - "@album@"
:end_wavpack_tracks
if %LameMP3%==0 goto end_mp3_tracks
set dest=%MP3_TrackDir%
REM if @various@==1 set MP3_VA_tag=--frame TPE2:$q%AlbumArtist%$q
SET userText=--user-text $q[album artist]%AlbumArtist%$q
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.mp3" --pipe "title $n/$N mp3 $#T & @tools@\lame.exe %LameMP3_opt% - $#o & @tools@\metamp3.exe %MP3_VA_tag% --artist $#a --album $#T --title $#t --track $n/$N --year $q@year@$q --genre $q@genre@$q --comment $qRipped with EAC/REACT$q --frame TENC:$q%USERNAME%$q --frame TSSE:$qLAME %LameMP3_ver% %LameMP3_opt%$q $#o" "@sourcecuesheet@"
pushd "%dest%"
if %add_meta%==1 @tools@\metamp3.exe %MetaMP3_RG% *.mp3
REM copy "@eaclog@" "EAClog.txt"
if %add_cover%==1 copy "@cover@" "folder.jpg"
popd
:end_mp3_tracks
if %NeroAac%==0 goto end_aac_tracks
set dest=%AAC_TrackDir%
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.m4a" --pipe "title $n/$N aac $#T & @tools@\neroAacEnc.exe %NeroAac_opt% -if - -of $#o & @tools@\neroAacTag.exe $#o -meta:artist=$#a -meta:album=$#T -meta:title=$#t -meta:track=$n -meta:totaltracks=$N -meta:year=$q@year@$q -meta:genre=$q@genre@$q -meta:comment=$qRipped with EAC/REACT$q" "@sourcecuesheet@"
pushd "%dest%"
if %add_cover%==1 for %%i in (*.m4a) do @tools@\neroAacTag.exe "%%i" %AacTag_cover%
if %add_rg%==1 @tools@\aacgain.exe %AacGain_RG% *.m4a > gainlog.txt
REM copy "@eaclog@" "EAClog.txt"
REM if %add_cover%==1 copy "@cover@" "folder.jpg"
popd
:end_aac_tracks
if %OggEnc2%==0 goto end_ogg_tracks
set dest=%OGG_TrackDir%
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.ogg" --pipe "title $n/$N ogg $#T & @tools@\oggenc2.exe %OggEnc2_opt% -c artist=$#a -c album=$#T -c title=$#t -c tracknumber=$n/$N -c date=$q@year@$q -c genre=$q@genre@$q -c comment=$qRipped with EAC/REACT$q -c encoded-by=$q%USERNAME%$q - -o $#o" "@sourcecuesheet@"
pushd "%dest%"
if %ReplayGain%==1 @tools@\vorbisgain.exe -a *.ogg
REM copy "@eaclog@" "EAClog.txt"
REM if %add_cover%==1 copy "@cover@" "folder.jpg"
popd
:end_ogg_tracks
REM ================ END MAIN SCRIPT ===================
if %Debug%==1 (
pause
REM exit
)
rem ** Cleanup
del "@source@"
del "@eaclog@"
del "@cuesheet@"
del "@albumfile@.[*].cue"
del "@cover@"
rem ** Delete this .bat file:
del %0
I just had a thought. Does --user-text need to be added to?
@tools@\acdir.exe --overwrite --output "%dest%\%TrackName%.mp3" --pipe "title $n/$N mp3 $#T & @tools@\lame.exe %LameMP3_opt% - $#o & @tools@\metamp3.exe %MP3_VA_tag% --artist $#a --album $#T --title $#t --track $n/$N --year $q@year@$q --genre $q@genre@$q --comment $qRipped with EAC/REACT$q --frame TENC:$q%USERNAME%$q --frame TSSE:$qLAME %LameMP3_ver% %LameMP3_opt%$q $#o" "@sourcecuesheet@"