2007/4/18, Josh Coalson <xflac@yahoo.com>:> > --- Harry Sack <tranzedude@gmail.com> wrote: > > Hi, > > > > I'm using windows so I know the wildcard support for flac is broken. > > That's > > why I use this command to encode a whole directory of WAV-files to > > FLAC-files in a command prompt: > > > > for %1 in (*.wav) do flac -V --best "%1" > > > > This command is fully working > > > > Now I want to write the flac output to a file, so I can open this > > file > > later. > > I tried to add > outputfile.txt to the command like this: > > > > for %1 in (*.wav) do flac -V --best "%1" > outputfile.txt > > > > But this doesn't work. > > using > only captures stdout, but flac messages go to stderr, so > you need to do > > for %1 in (*.wav) do flac -V --best "%1" 2> outputfile.txtsorry, I replyed to quickly that it fully worked, but it's not fully working, only the output of the last file is saved to the outputfile. So only the output of the last file in the directory is saved to the outputfile (I think the outputfile is overwritten every time for each file). Do you know how I can write the output of EACH file to the same outputfile? I can't figure it out how to do this. So I want to have an outputfile that has all the FLAC output of each file. thanks in advance! this is true for cmd.exe as well as other unixy shells like bash.> not sure if it works for command.com though. > > Josh > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070418/a49e1719/attachment.htm
> sorry, I replyed to quickly that it fully worked, but it's not fully > working, only the output of the last file is saved to the outputfile. > So only the output of the last file in the directory is saved to the > outputfile (I think the outputfile is overwritten every time for each file). > Do you know how I can write the output of EACH file to the same > outputfile? I can't figure it out how to do this. So I want to have an > outputfile that has all the FLAC output of each file.try using 2>> I don't know if this is supported on Windows, but in general ">>" means to append to the file, while ">" means to truncate the file and start over from scratch. What I'm not sure of is whether it works for standard error (file descriptor 2). You also asked whether writing to a file will be slower that writing to the console. I'm pretty sure it will be quite a lot faster, as it takes quite a bit of computation to scroll a screen full of text. File I/O to add a line of text to a file takes much less. Rippit the Ogg Frog rippit@oggfrog.com http://www.oggfrog.com/
2007/4/18, Rippit the Ogg Frog <rippit@oggfrog.com>:> > > > sorry, I replyed to quickly that it fully worked, but it's not fully > > working, only the output of the last file is saved to the outputfile. > > So only the output of the last file in the directory is saved to the > > outputfile (I think the outputfile is overwritten every time for each > file). > > Do you know how I can write the output of EACH file to the same > > outputfile? I can't figure it out how to do this. So I want to have an > > outputfile that has all the FLAC output of each file. > > try using 2>>thanks a lot!! Now it fully works. Thanks! I don't know if this is supported on Windows, but in general ">>" means> to append to the file, while ">" means to truncate the file and start > over from scratch. > > What I'm not sure of is whether it works for standard error (file > descriptor 2). > > You also asked whether writing to a file will be slower that writing to > the console. I'm pretty sure it will be quite a lot faster, as it takes > quite a bit of computation to scroll a screen full of text. File I/O to > add a line of text to a file takes much less. > > Rippit the Ogg Frog > rippit@oggfrog.com > http://www.oggfrog.com/ > _______________________________________________ > Flac mailing list > Flac@xiph.org > http://lists.xiph.org/mailman/listinfo/flac >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070418/f4a42398/attachment.htm