[flac] re-encode tool win32

Frank Russo russofris at hotmail.com
Thu Sep 27 22:00:37 PDT 2007


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: russofris at hotmail.com
To: lists at whitehouse.org.nz; tranzedude at gmail.com
Subject: RE: [flac] re-encode tool win32
Date: Thu, 27 Sep 2007 21:15:06 -0700
CC: flac at xiph.org








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: lists at whitehouse.org.nz
> To: tranzedude at gmail.com
> Subject: Re: [flac] re-encode tool win32
> CC: flac at xiph.org
> 
> > 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
> Flac at xiph.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac/attachments/20070927/d8b1c9fc/attachment-0001.htm


More information about the Flac mailing list