View Single Post
  #66  
Old 2020-02-20, 04:03 AM
Five's Avatar
Five Five is offline
 
Join Date: Oct 2004
Location: Canada
Re: The Validity of MD5 Checksums

batch files from Adam Fox's Shorten guide, 2001-11-14

FOR 2000/XP
2002-08-19:

chkMd5All.bat
Code:
@echo off
FOR %%f IN (*.md5) DO md5sum.exe  --check "%%~ff"
pause
chkMd5Single.bat
Code:
@echo off
FOR %%f IN (%1) DO md5sum.exe --check "%%~ff"
pause
GenMd5All.bat
Code:
:: Generate MD5 Checksum Files For Every File
:: With Matching Extension In The Directory
@echo off
@echo Generating MD5 Checksum Files
@echo All File Types %~x1
@echo This May Take Awhile...
FOR %%f in (*%~x1) DO md5sum.exe -b "%%f" > "%%f.md5"
GenMd5Single.bat
Code:
@echo off
@echo Generating MD5 Checksum File
@echo For File %~nx1
@echo This May Take Awhile...
FOR %%f IN (%1) DO md5sum.exe -b "%%~ff" >  "%%~f.md5"
FOR WIN95, WIN98
2001-11-12:

1md5ck.bat
Code:
@echo off
lfnfor on
@echo on
for %%f in (%1) do md5sum.exe  --check %%f
@echo off
pause
lfnfor off
cls
makeskt.bat
Code:
@echo off
cls
echo Seeking Shorten batch creation utility for Windows 95/98
echo Written for SHN v3 by Mike Wren
echo Mod for NT4 by Eddie Burks (beware filename's with spaces!)
echo ÿ
echo http://etree.org ú Leading the Lossless Audio Revolution
echo ÿ
echo ÿ
echo Working...
echo ÿ
lfnfor on
FOR %%f in (*.shn) DO shortn32 -s %%f %%f.shn
goto end

:end
lfnfor off
echo ÿ
echo Seek (.skt) files successfully created and saved
echo in the same directory as your Shorten files.
echo ÿ
pause
cls
md5check.bat
Code:
@echo off
lfnfor on
@echo on
for %%f in (*.md5) do md5sum.exe  --check %%f
@echo off
pause
lfnfor off
cls
md5gen.bat
Code:
@echo off
echo.
echo.
echo   Generating MD5 for SHN files in the current folder
echo  This could take a few minutes depending on file sizes
md5sum.exe --binary *.shn >  ~NameMeShn~.md5
cls
echo.
echo.
echo  Your new md5 file  ~NameMeShn~.md5 is in the current folder
echo.
echo  Please rename ~NameMeShn~.md5 correctly for your set of files
echo.
echo.        Hit any key to close this dosbox
pause >c:\nul
cls
md5wav.bat
Code:
@echo off
echo.
echo.
echo   Generating MD5 for wave files in the current folder
echo  This could take a few minutes depending on file sizes
md5sum.exe --binary *.wav >  ~NameMeWav~.md5
cls
echo.
echo.
echo  Your new md5 file  ~NameMeWav~.md5 is in the current folder
echo.
echo  Please rename ~NameMeWav~.md5 correctly for your set of files
echo.
echo.        Hit any key to close this dosbox
pause >c:\nul
cls
renshn.bat
Code:
cls
ren *.wav_s *.shn
cls
renwav.bat
Code:
cls
ren *.shn_w  *.wav
cls
shorten.bat
Code:
@echo off
call c:\~_lasts.bat
cls
echo.
echo Enter DRIVE and FOLDER for SHN files EXAMPLE: C:\SHNFILES
echo     DO NOT USE SPACES   DO NOT END IN  \
echo.
echo Just hit enter to use last entry which was: %_las%
echo                         OR 
senvar.com /e n1_ Key in a DRIVE and FOLDER then hit enter:
If %n1_%!==! set n1_=%_las%
echo set _las=%n1_%>c:\~_lasts.bat
cls
echo.
echo You may put a SUBFOLDER inside %n1_% EXAMPLE: D1
echo     DO NOT USE SPACES   DO NOT END IN  \     
echo.                      
echo Just hit enter and files will go to %n1_% 
echo                        OR 
senvar.com /e n2_ Key in SUBFOLDER for %n1_% then hit enter:
set _sd=%n1_%\%n2_%
If %n2_%!==! set _sd=%n1_%
cls
lfnfor on
cls
echo.
echo             SHN files will be placed in %_sd%
echo              The line above Must Not END in \
echo.
echo     The destination folder MUST NOT be the source folder
echo.
echo              Hit Ctrl C to abort and start over  
echo                             OR
echo                 Hit any key to begin compressing
pause >nul
md %n1_% >nul
cls
md %_sd% >nul
cls
@echo on
FOR %%f in (*.wav) DO shortn32.exe  %%f %_sd%\%%f_s
@echo off
RENAME %_sd%\*.wav_s  *.shn
cls
echo.
echo     Wave files have been SHORTEN compressed
echo.
echo        SHN files are in %_sd%
echo.
echo    Hit any key to close this dosbox
pause >c:\nul
lfnfor off
cls
toolchks.bat
Code:
@echo off
cls
@echo on
shntool.exe len -u mb *.shn
pause
cls
toolchkw.bat
Code:
@echo off
cls
@echo on
shntool.exe len -u mb *.wav
pause
cls
toolfixs.bat
Code:
@echo off
call c:\~_lasts.bat
cls
echo.
echo   Specify destination DRIVE and FOLDER for Fixed files 
echo.
echo     DO NOT USE SPACES   DO NOT END IN  \
echo     EXAMPLE: C:\burning
echo     DEFAULT: %_las%
senvar.com /e n1_ destination: 
If %n1_%!==! set n1_=%_las%
echo set _las=%n1_%>c:\~_lasts.bat
cls
echo     [%n1_%] specified.  
echo.
echo     *Optional:  specify SUBFOLDER
echo     DO NOT USE SPACES   DO NOT END IN  \
echo     EXAMPLE: fixed     
senvar.com /e n2_   %n1_%\
set _bd=%n1_%\%n2_%
If %n2_%!==! set _bd=%n1_%
cls
echo     [%_bd%] specified. 
echo.
echo     *Optional:  specify SPECIAL COMMAND SWITCHES
echo.
echo     EXAMPLES: -nopad  : will not add zero bytes to last track
echo               -p      : preview mode will not write new files
echo               -noskip : processes all files regardless of need
echo               -o ext  : output type.  Default is wav.  (opt. SHN)
echo.
echo Hit enter to skip SPECIAL COMMAND SWITCHES 
echo                          OR
senvar.com /e n3_ Specify SPECIAL COMMAND SWITCHES then hit enter:

cls
echo.
echo      [shntool fix -d %_bd% %n3_% *.shn] specified
echo.
echo      Hit [CTRL] + [C] to quit.  
echo                          OR
echo      Hit any key to begin sector boundary shift.
pause >nul
md %n1_% >nul
cls
md %_bd% >nul
cls
@echo on
shntool fix -d %_bd% %n3_% *.shn
@echo off
echo.
echo.
echo        FIXED files are in %_bd%
echo.
echo         Hit any key to close this dosbox
pause >c:\nul
cls
toolfixw.bat
Code:
@echo off
call c:\~_lastw.bat
cls
echo.
echo   Specify destination DRIVE and FOLDER for Fixed files 
echo.
echo     DO NOT USE SPACES   DO NOT END IN  \
echo     EXAMPLE: C:\burning
echo     DEFAULT: %_las%
senvar.com /e n1_ destination: 
If %n1_%!==! set n1_=%_las%
echo set _las=%n1_%>c:\~_lastw.bat
cls
echo     [%n1_%] specified.  
echo.
echo     *Optional:  specify SUBFOLDER
echo     DO NOT USE SPACES   DO NOT END IN  \
echo     EXAMPLE: fixed     
senvar.com /e n2_   %n1_%\
set _bd=%n1_%\%n2_%
If %n2_%!==! set _bd=%n1_%
cls
echo     [%_bd%] specified. 
echo.
echo     *Optional:  specify SPECIAL COMMAND SWITCHES
echo.
echo     EXAMPLES: -nopad  : will not add zero bytes to last track
echo               -p      : preview mode will not write new files
echo               -noskip : processes all files regardless of need
echo               -o ext  : output type.  Default is wav.  (opt. SHN)
echo.
echo Hit enter to skip SPECIAL COMMAND SWITCHES 
echo                          OR
senvar.com /e n3_ Specify SPECIAL COMMAND SWITCHES then hit enter:

cls
echo.
echo      [shntool fix -d %_bd% %n3_% *.shn] specified
echo.
echo      Hit [CTRL] + [C] to quit.  
echo                          OR
echo      Hit any key to begin sector boundary shift.
pause >nul
md %n1_% >nul
cls
md %_bd% >nul
cls
@echo on
shntool fix -d %_bd% %n3_% *.wav
@echo off
echo.
echo.
echo        FIXED files are in %_bd%
echo.
echo         Hit any key to close this dosbox
pause >c:\nul
cls
toolinfo.bat
Code:
@echo off
cls
@echo on
shntool info "%1"
@echo off
echo -------------------------------------------------------------------------------
pause
cls
ushorten.bat
Code:
@echo off
call c:\~_lastw.bat
cls
echo Enter DRIVE and FOLDER for Wave files EXAMPLE: C:\BURNING
echo     DO NOT USE SPACES  DO NOT END IN  \
echo.
echo Just hit enter to use last entry which was: %_las%
echo                           OR 
senvar.com /e n1_ Key in a DRIVE and FOLDER then hit enter:
If %n1_%!==! set n1_=%_las%
echo set _las=%n1_%>c:\~_lastw.bat
cls
echo Now you can make a SUBFOLDER inside %n1_% EXAMPLE: D1
echo     DO NOT USE SPACES   DO NOT END IN  \
echo.
echo Hit enter to skip SUBFOLDER... files will go to %n1_% 
echo                          OR
senvar.com /e n2_ Key in SUBFOLDER for %n1_% then hit enter:
set _bd=%n1_%\%n2_%
If %n2_%!==! set _bd=%n1_%
cls
lfnfor on
cls
echo.
echo           WAVE files will be placed in %_bd%
echo.
echo              The line above Must Not END in \
echo.
echo     The destination folder MUST NOT be the source folder
echo.
echo              Hit Ctrl C to abort and start over  
echo.
echo                             OR
echo.
echo                 Hit any key to begin expanding
pause >nul
md %n1_% >nul
cls
md %_bd% >nul
cls
@echo on
FOR %%f in (*.shn) DO shortn32.exe -x  %%f %_bd%\%%f_w
@echo off
RENAME %_bd%\*.shn_w  *.wav
echo.
echo.
echo        WAVE files are in %_bd%
echo.
echo    Hit any key to close this dosbox
pause >c:\nul
lfnfor off
cls
Attached Images
File Type: gif shncd.gif
( 2.5 KB, 27 views)
 
__________________
Checksums Demystified | ask for help in Technobabble

thetradersden.org | ttd recommended free software/freeware webring
shntool tlh eac foobar2000 spek audacity cdwave vlc

Quote:
Originally posted by oxymoron
Here you are in a place of permanent madness, be careful!
Reply With Quote Reply with Nested Quotes