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: flac@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: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [flac] re-encode tool win32
> CC: flac@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@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
_______________________________________________
Flac mailing list
Flac@xiph.org
http://lists.xiph.org/mailman/listinfo/flac

Reply via email to