|
Technobabble Post your general Need for Help questions here.
• Lossy or Lossless? Moderators |
|
Thread Tools |
#1
|
||||
|
||||
Shntool cmp for more than two files
Hey, here's a question for all you commandline gurus... In the FLAC conversion tutorial linked in my sig there's a section where I show how to comare just the audio in a FLAC set with a SHN set (or any format for that matter). I discovered that this functionality exists in SHNtool as well, but only accepts exactly two files. Can somebody help me out, do I need to use a .bat file or is there a generic command I can type to compare all SHNs with all the FLACs in a folder? It would be cool if I could generate a .log as well.
__________________
Checksums Demystified | ask for help in Technobabble thetradersden.org | ttd recommended free software/freeware webring shntool tlh eac foobar2000 spek audacity cdwave vlc Quote:
No members have liked this post.
|
#2
|
|||
|
|||
Re: Shntool cmp for more than two files
I think you'll end up having to write a batch file, but another approach to this is to use shntool's md5 command with the -c switch. It will generate a composite md5 of all the files in a directory.
so shntool md5 -c *.shn in one directory should produce the same output as shntool md5 -c *.flac in another directory. To work perfectly, the files would have to be similarly named so the composite output was in the same order, but you'd have that problem with what you're trying to do as well. I've not used DOS in ages, but there used to be a file compare command (fc), you could redirect the output of both shntool commands into temp files and then compare the results rather easily. Obviously, if you want to find which file in the shn set is different from the flac set you'll need to do a more precise cmp of each individual file pair. No members have liked this post.
|
#3
|
|||
|
|||
Re: Shntool cmp for more than two files
If the SHNs and FLACs are in the same folder and have the same names except for the extension, then you can type this at the command line:
for %F in (*.flac) do shntool cmp "%F" "%~nF.shn" No members have liked this post.
|
#4
|
||||
|
||||
Re: Shntool cmp for more than two files
thanks uhclem, that did the trick!
so now I'm just wondering how to get a log of the results? I added > cmp.log to the end of your code and it just spit out the results of the last comparison (t8 in this case). ps thanks also to Jazzbo, I'm sure your suggestion will come in handy with sets where I've corrected SBEs and want to verify the final results.
__________________
Checksums Demystified | ask for help in Technobabble thetradersden.org | ttd recommended free software/freeware webring shntool tlh eac foobar2000 spek audacity cdwave vlc Quote:
No members have liked this post.
|
#5
|
|||
|
|||
Re: Shntool cmp for more than two files
Try using >> cmp.log instead, i.e. double the >. See if that helps.
No members have liked this post.
|
#6
|
||||
|
||||
Re: Shntool cmp for more than two files
Quote:
No members have liked this post.
|
The Traders' Den |
Similar Threads | ||||
Thread | Forum | Replies | Last Post | |
How do I convert Flac Files to WAV Files in Windows Vista - Steve Remy | Technobabble | 6 | 2010-07-19 05:14 PM | |
Joining Wav files with xACT (shntool) - reece | Technobabble | 5 | 2007-02-27 09:54 PM | |
Hard Drive is full - Original Music Files vs. Back-up Files - cicada | Technobabble | 6 | 2007-01-07 04:12 PM | |
shntool cxx error / 1 channel mono files... don't need help anymore. - feralicious | Technobabble | 11 | 2005-04-27 10:02 AM | |
How to compare shntool md5 checksums against files - Gizby | Technobabble | 2 | 2004-11-26 12:13 PM |
Thread Tools | |
|
|