Help - Search - Members - Calendar
Full Version: Wildcard alternative in cmd.exe
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
soundmeister
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
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
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.
greynol
http://www.ss64.com/ntsyntax/index.html
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-2008 Invision Power Services, Inc.