RE: re-encode tool win32

Frank Russo <[email protected]>
Newsgroups gmane.comp.audio.compression.flac.user
Message-ID <[email protected]>
Someone try this on a test music directory and see if this works in cmd.exe..... 

cd c:\MusicDirectory
FOR /F "usebackq delims==" %i IN (`dir /B /S *.flac`) DO flac -t %i && flac -8V %i


I don't fully understand the syntax of FOR loops in dos..  The instructions seem a bit lacking.....  Windows is a strange beast indeed.

Frank

From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [flac] re-encode tool win32
Date: Thu, 27 Sep 2007 21:15:06 -0700
CC: [email protected]








Under linux/bash, it would be something like....


cd /MusicDirectory
find . -type f -name "*.flac"  -exec sh -c 'flac -t {} && flac -8V {}' \;

Or to simplify and not test each file before re-encode....

find . -type f -name "*.flac"  -exec flac -8 {} \; -print

Can someone translate this into NTBatch?  Basically, recursive "dir" *.flac files as a nested command into a for loop or something?  I'd hate to suggest someone install cygwin just because I don't remember how to script in dos.  No need for a "GUI" when you can one-line it.

Frank





> Date: Fri, 28 Sep 2007 14:50:27 +1200
> From: [email protected]
> To: [email protected]
> Subject: Re: [flac] re-encode tool win32
> CC: [email protected]
> 
> > does somebody know a re-encode tool for win32? So it must have a GUI to make
> > a list of FLAC files that need to be re-encoded to a newer flac version and
> > it must automatically re-encode the whole list of files (so like the flac
> > frontend but with re-encode support).
> 
> I wouldn't mind one for Linux, either!
> 
> Aaron
> _______________________________________________
> Flac mailing list
> [email protected]
> http://lists.xiph.org/mailman/listinfo/flac

Connect to the next generation of MSN Messenger   Get it now! 

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

_______________________________________________
Flac mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.