My latest additions to my REACT2 code:
REACT.ini
RunAccurateRip=1
ARCue=C:\Download\Media\Music\Tools\ARCue\ARCue.pl
arlog=accuraterip.log
CopyAR=0
TagAR=1
REACT-image.cfg
REM ** Initialize accuraterip variables
SET ar_copy=0
SET ar_tag=
REM ** Run ARCue on source WAV file and output results if desired
IF NOT @RunAccurateRip@==1 GOTO endAR
REM ** Set accuraterip variables
SET ar_copy=@CopyAR@
IF @TagAR@==1 SET ar_tag=--tag-from-file="accuraterip=@arlog@"
ECHO.
ECHO Processing image from AccurateRip database. Please wait...
ECHO.
"@ARCue@" "@sourcecuesheet@"|find /v ".cue">@arlog@
TYPE @arlog@
REM ** If inaccurate, ask user what to do, otherwise continue script
IF NOT ERRORLEVEL 1 GOTO endAR
ECHO.
ECHO Error validating image with AccurateRip.
ECHO.
:ask
SET choice=
ECHO Enter [c] to continue anyway.
ECHO Enter [d] to delete temp files and exit.
SET /p choice="Enter [x] to exit without deleting temp files: "
IF [%choice%]==[c] GOTO continue
IF [%choice%]==[d] GOTO error_1
IF [%choice%]==[x] EXIT
ECHO.
ECHO [%choice%] is invalid.
ECHO.
GOTO ask
:error_1
REM ** Cleanup temp files
GOTO Cleanup
:continue
REM ** If failed but continuing, set variables so @arlog@ is not copied or embeded
SET ar_copy=0
SET ar_tag=
:endAR
under FLAC image
flac.exe @Opt_Flac@ %RG_Flac% %Cover_tag% -T "%ArtistField%=@cdartist@" -T album="@album@" -T totaltracks="$numtracks$" -T date="@year@" -T genre="@genre@" -T encoding="Flac @Ver_Flac@ @Opt_Flac@" --tag-from-file="cuesheet=@cuesheet@" --tag-from-file="eaclog=@eaclog@" %ar_tag% "@source@" -o "@image@"
and
IF %ar_copy%==1 COPY /Y @arlog@ %dest%
under FLAC and LAME tracks
IF %ar_copy%==1 COPY /Y "@sourcedir@\@arlog@" .
Cleanup section
REM ** Cleanup
:Cleanup
DEL "@source@"
DEL "@eaclog@"
DEL "@cuesheet@"
DEL "@albumfile@.[*].cue"
DEL "@cover@"
DEL "@arlog@"
I hope this is useful for someone else too!
EDIT - fixed some logical and syntax errors....must've been tired last night