Hi, I want to use the "flac" encoder (in commandline mode) and I specify this command to encode all .WAV files in the current directory: N:\WAV>flac -V --best -- *.wav flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. ERROR: can't open input file *.wav: Invalid argument What is wrong in my syntax or how can I specify to encode all *.wav files in the current directory (I'm using windows)? I remember that typing 'flac --best *wav' DID work in linux, why doesn't it work in windows? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070322/b2cad4c3/attachment.html
the windows shell is broken w.r.t wildcards and probably always will be: http://www.hydrogenaudio.org/forums/index.php?showtopic=50667&st=75&p=466078&#entry466078 --- Harry Sack <tranzedude@gmail.com> wrote:> Hi, > > I want to use the "flac" encoder (in commandline mode) and I specify > this > command to encode all .WAV files in the current directory: > > N:\WAV>flac -V --best -- *.wav > > flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 > Josh > Coalson > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and > you are > welcome to redistribute it under certain conditions. Type `flac' for > details. > > ERROR: can't open input file *.wav: Invalid argument > > What is wrong in my syntax or how can I specify to encode all *.wav > files in > the current directory (I'm using windows)? > I remember that typing 'flac --best *wav' DID work in linux, why > doesn't it > work in windows? > > thanks____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news
Charles Steinkuehler
2007-Mar-22 16:53 UTC
[Flac] FLAC: specifying all files with extension .WAV
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Josh Coalson wrote:> the windows shell is broken w.r.t wildcards and probably always > will be: > http://www.hydrogenaudio.org/forums/index.php?showtopic=50667&st=75&p=466078&#entry466078You can use the 'for' command in a windows command shell to get around the wildcard issue (running flac once for each filename), or use a 'real' shell. With cygwin, you can run bash (or your favorite *nix shell) on windows, and then wildcards (and *MANY* other scripting features) will work as they should. :) I think some of the windows shell replacements (4NT and the like) may also support proper wildcarding, pipelines, redirects, and other features, but it's been long enough since I've used any that I don't recall for sure. - -- Charles Steinkuehler cstein@newtek.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) iD8DBQFGAxJEenk4xp+mH40RAtnQAKDBtwaqklF0TdH/RjB4e3+Or7F+7QCfXGZ0 vXjhHGl2edEne1Lmhx1JDEQ=gGp/ -----END PGP SIGNATURE-----
If you want to use a UNIX shell, without actually having to run a UNIX, try Cygwin. http://www.cygwin.com/ On Thu, 2007-03-22 at 16:21 -0700, Josh Coalson wrote:> the windows shell is broken w.r.t wildcards and probably always > will be: > http://www.hydrogenaudio.org/forums/index.php?showtopic=50667&st=75&p=466078&#entry466078 > > --- Harry Sack <tranzedude@gmail.com> wrote: > > > Hi, > > > > I want to use the "flac" encoder (in commandline mode) and I specify > > this > > command to encode all .WAV files in the current directory: > > > > N:\WAV>flac -V --best -- *.wav > > > > flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 > > Josh > > Coalson > > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and > > you are > > welcome to redistribute it under certain conditions. Type `flac' for > > details. > > > > ERROR: can't open input file *.wav: Invalid argument > > > > What is wrong in my syntax or how can I specify to encode all *.wav > > files in > > the current directory (I'm using windows)? > > I remember that typing 'flac --best *wav' DID work in linux, why > > doesn't it > > work in windows? > > > > thanks > > > > > ____________________________________________________________________________________ > 8:00? 8:25? 8:40? Find a flick in no time > with the Yahoo! Search movie showtime shortcut. > http://tools.search.yahoo.com/shortcuts/#news > _______________________________________________ > Flac mailing list > Flac@xiph.org > http://lists.xiph.org/mailman/listinfo/flac-- Alex Jones http://alex.weej.com/