Help - Search - Members - Calendar
Full Version: Batch Convert Multiple FLAC w/ ONLY FLac.EXE
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
SKiTLz
I need a way to decompress multiple flac files to wav within one dir using only flac.exe

From the looks of its sytax you can only decompress one file at a time. Im hoping theres a batch guru out there that could tell me how to do it in a batch file.

Im making a Context Menu option on right click of all cue files to burn the image. It has to first decompress the flac files to wav then burn the cue. Thats why I need CLI.

Hopefully someone can lend a hand.

Cheers
john33
IIRC, you can list the files for decoding, space separated.
Synthetic Soul
Edit: Yeah John's right - if you drag a load of WAVEs onto FLAC.EXE it processes them all.
SKiTLz
thanks fellas.. but I dont think that'll be able to help in my situation.

The batch file has to process anything in the directory of the cue file. Its dynamic so the names etc will change all the time.
ajr
QUOTE(SKiTLz @ Apr 15 2005, 05:09 AM)
...  Im hoping theres a batch guru out there that could tell me how to do it in a batch file....


Assuming you're on windows NT/2000/XP you can use the 'for' command, for example save the following to a batch file 'list.bat' and modify for your needs:

CODE

@echo off
for %%f in (folder\*.txt) do type %%f | more


If that doesn't satisfy, you may have to go for a more heavyweight script language...!

HTH! biggrin.gif
Synthetic Soul
I would use:

CODE
FOR /R %1 %%G IN (*.flac) DO FLAC.EXE -d "%%G"


Save this in a .bat file, pass a folder as the parameter, and the batch file will decode any flac file in the folder, or its subfolders.

If you look at my batch file APE-DECODE.BAT there is a more "grandiose" example.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.