Musepack Forums

Musepack Forums (
-   General (
-   -   batch mass-verify (

BigBertrand 16 March 2009 12:20 am

batch mass-verify

I'd like to mass-verify my MPC library, so I tried a batch like this:

FOR /r %a IN (*.mpc) DO mpcdec -c "%a" >> C:\log.txt
I had in mind to then search for "error occured" in the resulting log file; however, it doesn't work because the output is still written on screen, not in log

Doesn't anybody have an idea? thank you

edit: I really can't find out a solution; since mpcdec is said to write to stdout, the output should be redirected to the log file...

Antonski 17 March 2009 12:35 am

Hmmm, there is something strange, it seems that mpcdec writes to stderr instead of stdout? I've succeeded to redirect the output to a file using

>mpcdec.exe test.mpc >> test.log 2>&1
Of course, this is possible because I have installed UnixUtils in my %PATH%.
I'm affraid with pure windows command prompt this would be impossible.

BigBertrand 17 March 2009 06:34 pm

thank you Antonski, redirecting both stdout and stderr this way works (no need of GNU tool at all)

future versions of mpcdec might want to correct this behaviour ;)

tzot 23 May 2009 10:33 pm


Originally Posted by BigBertrand (Post 2274)
future versions of mpcdec might want to correct this behaviour ;)

future versions of windows might want to justify more their POSIX compatibility by documenting the streams and their redirection. mpcdec correctly sends output to stdout and diagnostics to stderr.

All times are GMT. The time now is 11:00 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2021, vBulletin Solutions Inc.