View Single Post
  #24  
Old 2005-01-23, 12:30 PM
RainDawg's Avatar
RainDawg RainDawg is offline
Renegade Geek
 
Join Date: Oct 2004
Location: Passing swiftly through The Moor
Re: Fixing SBEs with shntool

Quote:
Originally Posted by bobs23
Here is my fix batch file:
@echo off
%~d1 & cd %*
for %%T in (shn flac wav ape) do if exist *.%%T shntool fix *.%%T
pause

What should I add to pad the last file?
Yes, just reading through the shntool documentation (I'm sure you'll all done this, right ) reveals that the fix command contains a special switch called -noskip. I've not tried it yet, but this should pad the final track with silence regardless of whether or not there are other SBEs in the set.

So, the code would look like this:

@echo off
%~d1 & cd %*
for %%T in (shn flac wav ape) do if exist *.%%T shntool fix -noskip *.%%T
pause

I've not given it a whirl yet, please let me know how it works on sets with multiple SBEs and on sets with only a SBE on the final track.
__________________
Through the clouds,
Throught the lies,
We'll never see,
What's never been,
At the ending of life and the coming of death,
Pass not through its gates but into the dark.
Reply With Quote Reply with Nested Quotes