be sure to check the link for
Adam Fox's Shorten guide, still online as of this writing in 2020. amazing!

last updated 2001-11-13
batchfaq.txt by Jeremy Clark, 1999-04-26
Quote:
Subject: [pcp-shn] How to handle Shorten and MD5 my way.
Date: Mon, 26 Apr 1999 18:05:28 +0000
From: Jeremy Clark <RubyBroomxxxxxxxx.xxx>
To: PCP <[email protected]>, PCP-SHN <[email protected]>
From: Jeremy Clark <RubyBroomxxxxxxxx.xxx>
OK, I finally got my Shorten setup working perfectly with batch files
(thanks to Adam Fox's Shorten Guide), so I thought I'd share my method,
because I think it works rather nicely.
1. Create a folder on your C: drive called "util"
2. Create a folder on your C: drive called "burning"
3. Make sure there are copies of Shortn32.exe and md5sum.exe in the
"util" folder you created
4. Create the following 4 batch files in notepad and put them all in
the
"util" foler you created:
----------cut here-----------------
cls
lfnfor on
for %%f in (*.shn) do c:\util\shortn32.exe -x %%f c:\burning\%%f.wav
lfnfor off
----------cut here-----------------
name this file "unshorten.bat"
----------cut here-----------------
cls
lfnfor on
for %%f in (*.wav) do c:\util\shortn32.exe %%f c:\burning\%%f.shn
lfnfor off
----------cut here-----------------
name this file "shorten.bat"
----------cut here-----------------
c:\util\md5sum --binary *.shn > > ~NameMe~.md5
----------cut here-----------------
name this file "md5gen.bat"
----------cut here-----------------
cls
lfnfor on
for %%f in (*.md5) do c:\util\md5sum.exe --check %%f
lfnfor off
----------cut here-----------------
name this file "checksum.bat"
5. Open Windows Explorer and go to View>Options>File Types and click on
"New Type" and enter into the Description of type field "Shorten file"
and into the Associated extension field ".shn"
6. Create a "New..." action and call it "Extract". Put
"c:\util\shortn32.exe" -x "%1" "%1.wav" (WITH the quotes) into the
"application to perform action" field. Click on "Ok".
7. Create a "New..." action and call it "Extract all". Under
"application to perform action", browse to the file "unshorten.bat" you
created. Click on "Ok".
8. Create a "New..." action and call it "Generate MD5". Under
"application to perform action", browse to the file "md5gen.bat" you
created. Click on "Ok".
9. Back in View>Options>File Types, again click on "New Type" and enter
into the Description of type field "md5 checksum" and into the
Associated extension field ".md5"
10. Create a "New..." action and call it "check". Under "application to
perform action", browse to the file "checksum.bat" you created. Click
on "Ok".
11. Find "Wave sound" (or something similar) on the list of registered
file types and double click on it. Create a "New..." action and call it
"Shorten all". Under "application to perform action", browse to the
file "shorten.bat" you created. Click on "Ok".
12. Create a "New..." action and call it "Shorten". Under "application
to perform action", type "c:\util\shortn32.exe" "%1" "%1.shn" (WITH the
quotes). Click on "Ok".
Ok, now your system is set up to do the following:
1. Right click on a .shn file on a CDROM disc (or anywhere for that
matter) and choose "Extract all". All the shorten files in the current
directory will be sequentially extracted into .wav files in the
c:\burning directory.
2. Right click on a .shn file in a directory and choose "Generate MD5".
A file called "~NameMe~.md5" will be created in the c:\burning
directory. Rename the file appropriately.
3. Right click on an .md5 file in a directory and choose "check". A DOS
window will open and md5sum will sequentially verify that all the .shn
files in the directory match the .md5 file.
4. Simply double-click on any .shn file anywhere and it will decompress
to a .wav file.
5. Right click on a .wav file and choose "Shorten". A .shn file will be
created in the same directory.
OK I think I got it all typed in there. I hope all this helps! Feel
free to
email me with any questions, although I'm not really an expert.
I owe most of this to Adam Fox's Shorten guide
at http://members.tripod.com/~rimeswel/shnguide.html
--
Jeremy Clark
AOL Instant Messenger - RubyBroom
ICQ# - 7534422
IRC nicks - ]eremy, RubyBroom
|
No members have liked this post.