The Traders' Den  

  The Traders' Den > Where we go to learn ..... > Technobabble
 
Home Forums FAQ Register Members List

Notices

Technobabble Post your general Need for Help questions here.
Lossy or Lossless?
Moderators

Reply
 
Thread Tools
  #31  
Old 2005-03-27, 11:16 PM
feralicious's Avatar
feralicious feralicious is offline
dare to discover
63.44 GB/133.91 GB/2.11
 
Join Date: Nov 2004
Location: occasionally
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

Quote:
Originally Posted by pmonk66
I created a batch file to create md5 signatures - but I would like to it to be able to automatically name the .md5 the name of the folder that was dragged into the batch file. Is that possible???
The following works to make an SBE check file named with the folder name, perhaps you can incorporate it and modify it for md5?

shntool len with txt file added to folder:

@echo off
%~d1 & cd %*
for %%T in (shn flac wav ape) do if exist *.%%T shntool len -u mb *.%%T >> "%~n1-shntool.txt"
__________________
feralicious goodies
Don't get even.
Get odd.

....
Reply With Quote Reply with Nested Quotes
  #32  
Old 2005-03-28, 07:45 AM
pmonk's Avatar
pmonk pmonk is offline
520.32 GB/630.74 GB/1.21
 
Join Date: Nov 2004
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

That did the trick - thanks
__________________
You have been banned for the following reason:
No reason was specified.

Date the ban will be lifted: Never
Reply With Quote Reply with Nested Quotes
  #33  
Old 2005-04-01, 09:35 AM
uhclem
0.00 KB/0.00 KB/---
 
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

Quote:
Originally Posted by dancin_carrot
Does anyone know what level of FLAC compression is used with shntool? And is there a way to change it?
The answer is essentially the same for Windows users as for *nix users such as Jazzbo, except you have to put single quotes around the curly brackets, e.g.:

'{' flac - -8 -o %f '}'

Make sure there is a space between each ' and the code before or after it inside the curly brackets.

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]

You can use the 'typ' variable with any shntool command. For a straight conversion, for instance, set the typ variable as above, then use a command such as the following:

shntool conv -o %typ% *.shn
Reply With Quote Reply with Nested Quotes
  #34  
Old 2005-04-01, 04:33 PM
dancin_carrot's Avatar
dancin_carrot dancin_carrot is offline
listen to k.h.b.r.
47.27 GB/45.18 GB/0.96
 
Join Date: Mar 2005
Location: BC
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

Very cool uhclem, thanks a lot!
Reply With Quote Reply with Nested Quotes
  #35  
Old 2005-04-19, 05:58 PM
roann's Avatar
roann roann is offline
TTD Staff
1.24 TB/594.30 GB/0.47
 
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
  #36  
Old 2005-04-19, 08:16 PM
uhclem
0.00 KB/0.00 KB/---
 
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

You didn't specify an input file inside the curly brackets. When working with a custom format the input should always be 'standard in' which is signified simply by a dash, '-'

So try this inside the curlys and let me know if it works:

mac - %f -c4000
Reply With Quote Reply with Nested Quotes
  #37  
Old 2005-04-20, 02:50 AM
roann's Avatar
roann roann is offline
TTD Staff
1.24 TB/594.30 GB/0.47
 
Join Date: Nov 2004
Location: Planet Earth
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

Quote:
Originally Posted by uhclem
You didn't specify an input file inside the curly brackets. When working with a custom format the input should always be 'standard in' which is signified simply by a dash, '-'

So try this inside the curlys and let me know if it works:

mac - %f -c4000
Fantastico, this works perfectly. Thanks very much!
Reply With Quote Reply with Nested Quotes
  #38  
Old 2005-07-13, 03:27 AM
feralicious's Avatar
feralicious feralicious is offline
dare to discover
63.44 GB/133.91 GB/2.11
 
Join Date: Nov 2004
Location: occasionally
Re: Batch Files - "How to" + Recipes (add 'em if you got 'em!)

bumpity bump
__________________
feralicious goodies
Don't get even.
Get odd.

....
Reply With Quote Reply with Nested Quotes
Reply

The Traders' Den > Where we go to learn ..... > Technobabble

Similar Threads
Thread Forum Replies Last Post
what does "dvd video files reallocation failed" mean? - chewie420 Technobabble 1 2006-03-04 02:07 PM



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forums


All times are GMT -5. The time now is 06:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - , TheTradersDen.org - All Rights Reserved - Hosted at QuickPacket