2

Using cmd.exe after a cursory look though of the output of help for:

Command: FOR /R \Music %file IN (*.flac *.wav *.aif) DO C:flac.exe -f -8 %file
Response: %file was unexpected at this time.

Command: FOR /R \Music %file% IN (*.flac *.wav *.aif) DO C:flac.exe -f -8 %file%
Response: %file% was unexpected at this time.

1 Answer 1

0
This work for me:

Replace:

"c:\Full_Path_to\Music" to full path to your \Music folder

@C:\Where\FLAC\Are\flac.exe to full path to Flac.exe

for %i in (flac wav aif)do for /f %F in ('where /r "c:\Full_Path_to\Music" "*.%i"')do C:\Where\FLAC\Are\flac.exe -f -8 "%F"

Or, for bat file:

@for %%i in (flac wav aif)do @for /f %%F in ('where /r "c:\Full_Path_to\Music" "*.%%i"')do @C:\Where\FLAC\Are\flac.exe -f -8 "%%F"

Also, you can try this:

cd /d "C:\Full_Path_to\Music" && for /r %%i in (*.flac,*.wav,*.aif)do @"C:\Where\FLAC\Are\flac.exe" -f -8 "%%~i"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .