View Single Post
  #35  
Old 2005-04-19, 05:58 PM
roann's Avatar
roann roann is offline
TTD Staff
 
Join Date: Nov 2004
Location: Planet Earth
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

Quote:
Originally Posted by uhclem
... When I want to perform a fix and compress to a non-default level of flac compression, I make a custom batch file and I create the custom file type as a variable. This makes the code a little easier to read, and I can easily cut and paste from one batch file into another for other fixes. I create a variable called 'typ' (for file type) at the beginning of the batch file like this:

set typ=cust ext=flac '{' flac -o %%f -V -8 - '}'

I then use 'typ' as my shntool file format with the -o argument, like this:

shntool fix -s r -o %typ% [input files]

...
Thnx for this, uhclem. I tried the same on ape files but failed. One of the lines I tested was
shntool fix -s b -o cust ext=ape '{' mac %f -c4000 '}' "Test 01.ape" "Test 02.ape" "Test 03.ape"
Only some useless warnings / error messages showed up ("make sure that there is enough disk space + the specified output directory exists" and stuff like that). Can you give me a helping hand pls?
Reply With Quote Reply with Nested Quotes