2020-02-20, 01:02 AM
|
|
|
|
Join Date: Oct 2004
Location: Canada
|
|
Re: The Validity of MD5 Checksums
People for a clearer Phish, 1999-11-28
Quote:
Originally Posted by Jeremy Clark
How to get the most out of Shorten and MD5
These instructions courtesy of Jeremy Clark. Thanks, Jeremy!
- Create a folder on your C: drive called "util"
- Create a folder on your C: drive called "burning"
- Make sure there are copies of Shortn32.exe, md5sum.exe, and shorten.ico in the "util" folder you created
- Create the following batch files in notepad and put them all in the "util" foler you created:
cls
lfnfor on
for %%f in (*.shn) do c:\util\shortn32.exe -x %%f c:\burning\%%f.wav
lfnfor off
name this file "unshorten.bat"
cls
lfnfor on
for %%f in (*.wav) do c:\util\shortn32.exe %%f c:\burning\%%f.shn
lfnfor off
name this file "shorten.bat"
c:\util\md5sum --binary *.shn > > ~NameMe~.md5
name this file "md5gen.bat"
cls
lfnfor on
for %%f in (*.md5) do c:\util\md5sum.exe --check %%f
lfnfor off
name this file "checksum.bat"
- 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" Then click on "Change Icon" and browse to the files "shorten.ico" in the "util" folder you created.
- 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".
- 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".
- 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".
- 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"
- Create a "New..." action and call it "check". Under "application to perform action", browse to the file "checksum.bat" you created. Click on "Ok".
- 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".
- 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:
- 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.
- 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.
- 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.
- Simply double-click on any .shn file anywhere and it will decompress to a .wav file.
- Right click on a .wav file and choose "Shorten". A .shn file will be created in the same directory.
I hope all this helps!
|
No members have liked this post.
|