soundmeister
Mar 31 2008, 18:18
Hi, let's say I want to convert 20 wav files located in "C:\music" into flac using the command line. I start up cmd.exe and type in the command
flac -8 --verify "C:\music\sound01.wav"
I don't want to type it out for 20 different files. I know that * won't work for some reason. Is there an alternative to using *? I know the documentation mentions something about that but I don't understand how I should type that into cmd.exe.
Thanks for any help.
footballking3420
Mar 31 2008, 18:38
FOR %G IN ("C:\music\*.wav") DO "path\to\flac.exe" -8 --verify "%G" -o "path\to\output\folder\%~nG.flac"
I believe that should do it, of course you have to fill in the paths and whatnot.
soundmeister
Mar 31 2008, 19:18
That did it! Thank you! Is there a site that explains DOS commands like these? I know there a sites with basic DOS commands but I haven't seen this one before except in the flac documentation.