For example, I'll have a variable that will end up like this:
Code: Select all
"01. Track 1.mp3" "02. Track 2.mp3" "03. Track 3.mp3"
Here's what I have so far:
Code: Select all
:: Loop through all files in folder for .mp3 files only
:: %1 is the directory filepath.
:: Then, concat all mp3s into a single line, delimited by double-quotes
set audio=%1\*.mp3
set tracks=
for /F "delims=" %%i in ('dir /s/b %audio%') do (
call set "tracks=%%tracks%% "%%i""
)
:: Tag with foobar2000!
c:\apps\foobar2000\foobar2000.exe /tag:GUESS:"%%TRACKNUMBER%%. %%TITLE%%":%%_FILENAME%% %tracks%
Any help will be greatly appreciated. Thanks and Happy New Year!