I just ripped a cd which produced a temp file with ! char and everything went smooth as a baby's bum.
I just checked my debugging.txt file and every temp file listed in there has an exclamation mark in it. As far as I remember mine normally do. My filenames seem to follow the format: "<first letter of artist>tmp<5 random chars using 0-9/!/->".
Not that this helps really...
The discrepancy with @source@ is a weird one.
Hi folks ... got busy for last coupla days. Anyhow here are my React.ini and React-track.cfg.
I have heavily modified the .cfg but like I said it was working until one day a week ago after not using it for several months. In the config I make calls to several outside programs. One is a very handy tool I bought years ago for search and replace I use it to modify some text in the .cue files
The other is Par to create PARs for archival purposes
My code attempts are probably amateurish but did acheive the results I was after and never generated any type of error until now.
All of the ripping action is taking place on local drives NOT network. This is all on Windows XP Service Pack 2 plus some, but not all updates since Service Pack 2 came out.
Codepage suggestion you made sorta kinda seems to make sense. I did not set that variable you asked about in an earlier post (SETLOCAL ENABLEDELAYEDEXPANSION)
Here is the .ini
[Settings]
Version=2.0
ImageExt=wav
ImageNaming=$artist$ - $year$ - $album$
ImageHotKey={F10}
TracksHotKey={F4}
TracksHotVal=+{F6}
VA=Various Artists
CreateAllCuesheets=0
RunCoverDownloader=1
CoverDownloader=E:\Publishing\AutoFlac\REACT\coverdownloader\albumart.exe
EAC=E:\Publishing\AutoFlac\Exact Audio\EAC.EXE
Tools=E:\Publishing\AutoFlac\REACT\tools
MinimizeCompressionWindow=0
ProcessPriority=1
Sla_Bks_Col_Qst_Bar_Quo_Ast_Lt_Gt=-|-|-||!|'|#|[|]
[UserTrackFormats]
Flac=1
Wavpack=0
LameMP3=0
NeroAac=0
iTunesAac=0
OggEnc2=0
[UserOutputNames]
PlaybackRoot=F:\Lossless
TrackDir_Playback=@PlaybackRoot@\$cdartist$\$cdartist$ - $year$ - $album$
OutRoot=L:\Ripped
ImageDir_Flac=@OutRoot@\FLAC-images\$cdartist$
ImageDir_Wavpack=@OutRoot@\WV-images\$cdartist$
ImageDir_MP3=@OutRoot@\MP3-images\$cdartist$
TrackDir_Flac=@OutRoot@\FLAC\$cdartist$\$cdartist$ - $year$ - $album$
TrackDir_Wavpack=@OutRoot@\WV\$cdartist$\$cdartist$ - $year$ - $album$
TrackDir_MP3=@OutRoot@\MP3\$cdartist$\$cdartist$ - $year$ - $album$
TrackDir_AAC=@OutRoot@\AAC\$cdartist$\$cdartist$ - $year$ - $album$
TrackDir_OGG=@OutRoot@\OGG\$cdartist$\$cdartist$ - $year$ - $album$
TrackName_SA=$cdartist$ - $year$ - $album$ - $track$ - $title$
TrackName_VA=$album$ - $track$ - $artist$ - $title$
TrackName_SA_acdir=$A - $r - $T - $n - $~t
TrackName_VA_acdir=$~a - $~n - $~T - $~t
CueSheet=@OutRoot@\$album$.cue
[UserSettings]
Debug=1
Comment=
EmbedCover=0
ReplayGain=1
ApplyAlbumGain=1
AdjustAlbumGain_dB=+3.0
AddCuesheetAG=1
UseWaveGainAG=1
Opt_Flac=-8 -f
Opt_Wavpack=-hmy
Opt_LameMP3=-V4 --vbr-new --noreplaygain --nohist
Opt_NeroAac=-lc -q 0.21
Opt_iTunesAac=-d -s 2000
Opt_OggEnc2=-q 3.0
Ver_Flac=1.2.0
Ver_Wavpack=4.40
Ver_LameMP3=3.97
Ver_NeroAac=1.0.0.2
Ver_OggEnc2=2.83 Lancer aoTuV b5
USERNAME=That Guy There ... In Canada Eh
CUE_use_FLAC=1
InfoDocsDir=L:\
InfoDocs=InfoDocs.zip
createinfodocs=0
createlocalcopies=1
and here is the .cfg
@ECHO OFF
CHCP 1252
TITLE @track@/@numtracks@ - "@album@"
REM Copyright © Tycho, 2006
REM
REM ** Create compressed audio tracks from ripped .wav tracks.
REM **
REM ** You may consider using image mode (F10)
REM ** as it supports creating tracks via acdir.exe,
REM ** and post-processing will always work (see below).
REM **
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.
REM **
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.
IF @Debug@==1 ECHO ON
SET TrackDir_Flac="@TrackDir_Flac@"
SET TrackDir_Playback="@TrackDir_Playback@"
IF @various@==0 SET TrackName=@TrackName_SA@
IF @various@==1 GOTO various_artist_script
REM ============== Begin Single Artist Script ==================
SET have_cover=0
SET embed_cover=0
IF EXIST "@cover@" (
SET have_cover=1
SET embed_cover=@EmbedCover@
)
REM ---- Track ----
IF NOT @Flac@==1 GOTO single_end_flac_tracks
IF NOT EXIST %TrackDir_Flac% MKDIR %TrackDir_Flac%
PUSHD %TrackDir_Flac%
IF @various@==1 SET VA_tag=-T "album artist=@VA@"
IF %embed_cover%==1 SET Cover_tag=--picture="|image/jpeg|||@cover@"
ECHO ON
@tools@\flac.exe @Opt_Flac@ %Cover_tag% %VA_tag% -T artist="@artist@" -T album="@album@" -T tracknumber="@track@/@numtracks@" -T title="@title@" -T date="@year@" -T genre="@genre@" -T comment="@comment@" -T encoded-by="@USERNAME@" -T encoding="Flac @Ver_Flac@ @Opt_Flac@" "@source@" -o "%TrackName%.flac"
@ECHO OFF
POPD
:single_end_flac_tracks
REM ** Delete the source .wav
DEL "@source@"
REM ---- Post-processing ----
rem ** Scan and compute ReplayGain and add cover picture for supported formats.
rem ** NB: The following will only work if at least the last track is selected,
rem ** and it is a regular audio track.
IF NOT @track@==@numtracks@ GOTO single_end_post_process
SET add_rg=@ReplayGain@
SET aac_enc=@NeroAac@
IF @iTunesAac@==1 SET aac_enc=1
IF NOT @ReplayGain@==1 GOTO single_end_RG
SET RG_MetaMP3=--replay-gain
SET RG_MetaFlac=--add-replay-gain
:single_end_RG
IF NOT @ApplyAlbumGain@==1 GOTO single_end_apply_AG
SET RG_MetaMP3=--apply-gain album@AdjustAlbumGain_dB@
SET RG_AacGain=/a /o /c /d @AdjustAlbumGain_dB@
SET add_rg=1
:single_end_apply_AG
REM ** Audio Formats:
IF @Flac@==1 (
PUSHD %TrackDir_Flac%
IF %add_rg%==1 @tools@\Glob.exe -v -c @tools@\metaflac.exe %RG_MetaFlac% "*.flac"
REM COPY /Y "@eaclog@" "@artist@ - @year@ - @album@".log
POPD
)
:single_end_post_process
REM --- :single_CheckForEACwavfiles
IF NOT @track@==@numtracks@ GOTO single_Continue ELSE GOTO single_FinishEncoding
:single_FinishEncoding
PUSHD %TrackDir_Flac%
REM --- Grab the EAC Logfile copy to Album directory and rename it
COPY /Y @Outroot@\*.log "@artist@ - @year@ - @album@".log
REM --- Insert a zipped informational Document to the tracks Directory if createinfodocs=1 in .ini file
IF NOT @createinfodocs@==1 GOTO single_skip_infodocs
REM --- IF NOT EXIST %TrackDir_Flac%\@InfoDocs@ COPY /Y @InfoDocsDir@\@InfoDocs@ "@artist@ - @year@ - @album@ - @InfoDocs@"
:single_skip_infodocs
REM --- Copy Album Cover to Album Directory and rename it
IF %have_cover%==1 COPY /y "@cover@" "@artist@ - @year@ - @album@".jpg
REM --- Copy m3u playlist to Album Directory and rename it
REM --- COPY /Y "@Outroot@\*.m3u" "@artist@ - @year@ - @album@".m3u
REM --- Duplicate Cue File to Album Directory and use 2nd one to hold paths to the .flac files NOT the now missing .WAV files from EAC's extraction process
REM --- if set in INI file to do so (using external search and replacer)
COPY /Y "@CueSheet@" "@artist@ - @year@ - @album@.cue"
POPD
IF NOT @CUE_use_FLAC@==1 GOTO single_end_CUE_use_FLAC
COPY /Y "@CueSheet@" "@TrackDir_Flac@\@artist@ - @year@ - @album@ - FLAC.cue"
"E:\Program Files\Search Replace\SR32.EXE" /p"@TrackDir_Flac@\*FLAC.cue" /s.wav /r.flac /q
:single_end_CUE_use_FLAC
REM --- Fix paths in m3u file and change cue sheets to point to .flac instead of wave
REM --- The following playlist path fix is REM because I generate after using external program.
REM --- "E:\Program Files\Search Replace\SR32.EXE" /p"@TrackDir_Flac@\*.m3u" /s.eac /r.flac /q
REM --- Copy flacs jpg and logfile to Users normal Playback directory if createlocalcopies=1 in .ini file
IF NOT @createlocalcopies@==1 GOTO single_create_pars
IF NOT EXIST %TrackDir_Playback% MKDIR %TrackDir_Playback%
COPY /Y "@TrackDir_Flac@\*.flac" "@TrackDir_Playback@\*.flac"
COPY /Y "@TrackDir_Flac@\*.jpg" "@TrackDir_Playback@\*.jpg"
COPY /Y "@TrackDir_Flac@\*.log" "@TrackDir_Playback@\*.log"
:single_create_pars
REM --- Create PAR recovery files for all the .flac files
par2 create -s307200 -r10 "@TrackDir_Flac@\@artist@ - @year@ - @album@".par2 "@TrackDir_Flac@"\*.flac
REM --- Cleanup the working Directory
del /Q @Outroot@\*.*
REM --- del /Q @Outroot@\*.jpg
REM --- del /Q @Outroot@\*.cue
REM --- del /Q @Outroot@"\*.m3u
REM --- del /Q @Outroot@"\*.log
RMDIR /S/Q @Outroot@\Temp
:single_Continue
IF @Debug@==1 (
PAUSE
EXIT
)
REM ** Delete this .bat file:
DEL %0
REM --- This loop will pause the creation of the PAR files in case EAC extraction falls behind.
REM --- PARS get created when the last wav file has been processed from the @Outroot@ directory
:single_Pause
REM --- ECHO Waiting for EAC to catch up ...
REM --- PING 1.1.1.1 -n 1 -w 10000 >NUL
REM --- GOTO single_sourcecheck
REM ================ End Single Artist Script ===================
REM ============== Begin Various Artist Script ==================
:various_artist_script
IF @various@==1 SET TrackName=@TrackName_VA@
SET have_cover=0
SET embed_cover=0
IF EXIST "@cover@" (
SET have_cover=1
SET embed_cover=@EmbedCover@
)
ECHO Waiting for file to be written ...
PING 1.1.1.1 -n 1 -w 10000 >NUL
REM ---- Track ----
IF NOT @Flac@==1 GOTO various_end_flac_tracks
IF NOT EXIST %TrackDir_Flac% MKDIR %TrackDir_Flac%
PUSHD %TrackDir_Flac%
IF @various@==1 SET VA_tag=-T "album artist=@VA@"
IF %embed_cover%==1 SET Cover_tag=--picture="|image/jpeg|||@cover@"
ECHO ON
@tools@\flac.exe @Opt_Flac@ %Cover_tag% %VA_tag% -T artist="@artist@" -T album="@album@" -T tracknumber="@track@/@numtracks@" -T title="@title@" -T date="@year@" -T genre="@genre@" -T comment="@comment@" -T encoded-by="@USERNAME@" -T encoding="Flac @Ver_Flac@ @Opt_Flac@" "@source@" -o "%TrackName%".flac
POPD
@ECHO OFF
:various_end_flac_tracks
REM ** Delete the source .wav
DEL "@source@"
REM ---- Post-processing ----
rem ** Scan and compute ReplayGain and add cover picture for supported formats.
rem ** NB: The following will only work if at least the last track is selected,
rem ** and it is a regular audio track.
IF NOT @track@==@numtracks@ GOTO various_end_post_process
SET add_rg=@ReplayGain@
SET aac_enc=@NeroAac@
IF @iTunesAac@==1 SET aac_enc=1
IF NOT @ReplayGain@==1 GOTO various_end_RG
SET RG_MetaMP3=--replay-gain
SET RG_MetaFlac=--add-replay-gain
:various_end_RG
IF NOT @ApplyAlbumGain@==1 GOTO various_end_apply_AG
SET RG_MetaMP3=--apply-gain album@AdjustAlbumGain_dB@
SET RG_AacGain=/a /o /c /d @AdjustAlbumGain_dB@
SET add_rg=1
:various_end_apply_AG
REM ** Audio Formats:
IF @Flac@==1 (
PUSHD %TrackDir_Flac%
IF %add_rg%==1 @tools@\Glob.exe -v -c @tools@\metaflac.exe %RG_MetaFlac% "*.flac"
REM COPY /Y "@eaclog@" "@artist@ - @year@ - @album@".log
POPD
)
:various_end_post_process
REM --- :various_CheckForEACwavfiles
IF NOT @track@==@numtracks@ GOTO various_Continue ELSE GOTO various_FinishEncoding
:various_FinishEncoding
PUSHD %TrackDir_Flac%
REM --- Grab the EAC Logfile copy to Album directory and rename it
COPY /Y @Outroot@\*.log "@artist@ - @year@ - @album@".log
REM --- Insert a zipped informational Document to the tracks Directory if createinfodocs=1 in .ini file
IF NOT @createinfodocs@==1 GOTO various_skip_infodocs
IF NOT EXIST %TrackDir_Flac%\@InfoDocs@ COPY /Y @InfoDocsDir@\@InfoDocs@ "@artist@ - @year@ - @album@ - @InfoDocs@"
:various_skip_infodocs
REM --- Copy Album Cover to Album Directory and rename it
IF %have_cover%==1 COPY /y "@cover@" "@artist@ - @year@ - @album@".jpg
REM --- Copy m3u playlist to Album Directory and rename it
REM --- COPY /Y "@Outroot@\*.m3u" "@artist@ - @year@ - @album@".m3u
REM --- Duplicate Cue File to Album Directory and use 2nd one to hold paths to the .flac files NOT the now missing .WAV files from EAC's extraction process
REM --- if set in INI file to do so (using external search and replacer)
COPY /Y "@CueSheet@" "@artist@ - @year@ - @album@.cue"
POPD
IF NOT @CUE_use_FLAC@==1 GOTO various_end_CUE_use_FLAC
COPY /Y "@CueSheet@" "@TrackDir_Flac@\@artist@ - @year@ - @album@ - FLAC.cue"
"E:\Program Files\Search Replace\SR32.EXE" /p"@TrackDir_Flac@\*FLAC.cue" /s.wav /r.flac /q
:various_end_CUE_use_FLAC
REM --- Fix paths in m3u file and change cue sheets to point to .flac instead of wave
REM --- The following playlist path fix is REM because I generate after using external program.
REM --- "E:\Program Files\Search Replace\SR32.EXE" /p"@TrackDir_Flac@\*.m3u" /s.eac /r.flac /q
REM --- Copy flacs jpg and logfile to Users normal Playback directory if createlocalcopies=1 in .ini file
IF NOT @createlocalcopies@==1 GOTO various_create_pars
IF NOT EXIST %TrackDir_Playback% MKDIR %TrackDir_Playback%
COPY /Y "@TrackDir_Flac@\*.flac" "@TrackDir_Playback@\*.flac"
COPY /Y "@TrackDir_Flac@\*.jpg" "@TrackDir_Playback@\*.jpg"
COPY /Y "@TrackDir_Flac@\*.log" "@TrackDir_Playback@\*.log"
:various_create_pars
REM --- Create PAR recovery files for all the .flac files
par2 create -s307200 -r10 "@TrackDir_Flac@\@artist@ - @year@ - @album@".par2 "@TrackDir_Flac@"\*.flac
REM --- Cleanup the working Directory
del /Q @Outroot@\*.*
REM --- del /Q @Outroot@\*.jpg
REM --- del /Q @Outroot@\*.cue
REM --- del /Q @Outroot@"\*.m3u
REM --- del /Q @Outroot@"\*.log
RMDIR /S/Q @Outroot@\Temp
:various_Continue
IF @Debug@==1 (
PAUSE
EXIT
)
REM ** Delete this .bat file:
DEL %0
REM --- This loop will pause the creation of the PAR files in case EAC extraction falls behind.
REM --- PARS get created when the last wav file has been processed from the @Outroot@ directory
:various_Pause
REM --- ECHO Waiting for EAC to catch up ...
REM --- PING 1.1.1.1 -n 1 -w 10000 >NUL
REM --- GOTO various_sourcecheck
REM ================ End various Artist Script ===================
Thanks again for all of your efforts. Hope you may get a little laugh at all the wacky code I threw in there. :-)
Kami