OK I have done that and now I don't get the error message but nothing is encoding now - images or tracks.
This is what I have now
REM :I_drive
SET cover="I:\TODO\$cdartist$\$cdartist$ - $year$ - $album$.jpg"
SET cover_small="I:\TODO\1AlbumArtSmall\$cdartist$ - $year$ - $album$.jpg"
IF NOT EXIST %cover% goto X_drive
SET have_cover=1
SET embed_cover=@EmbedCover@
goto end_cover_art
:X_drive
SET cover="X:\$cdartist$\$year$ - $album$\Folder.jpg"
SET cover_small="X:\$cdartist$\$year$ - $album$\AlbumArtSmall.jpg"
IF EXIST %cover% (
ATTRIB %cover% -s -h
ATTRIB %cover_small% -s -h
SET have_cover=1
SET embed_cover=@EmbedCover@
) ELSE (
ECHO.
ECHO *** ERROR MISSING COVER ART ***
ECHO.
ECHO: Cover art for "@basename@" does not exist!
ECHO.
PAUSE
GOTO :EOF
)
:end_cover_art
I am guessing its something to so with the following lines which feature %cover%
FLAC Image
IF %embed_cover%==1 SET Cover_tag=--picture="|image/jpeg|||%cover%"
FLAC Track
@tools@\acdir.exe --overwrite --output "%TrackName%.flac" --extra-opt "|image/jpeg|||%cover%"
MP3 Track
@tools@\acdir.exe --overwrite --output "%TrackName%.mp3" --extra-opt "APIC{3}:%cover%"
I know I should not have any quotes round %cover% when it is on its own but in these cases it features as part of another command. Is there something wrong with these lines. As I said previously this all worked fine until I came across the album with the & in it.