1. @ECHO OFF
  2. SET dest="G:\EXPERIMENT\Classical\Classical Masterpieces of the Millennium"
  3. SET gaintool="C:\program files\react2\tools\metamp3.exe"
  4. SET gaintoolopt=--replay-gain
  5. SET hashtool="C:\Program Files\ReHash\rehash.exe"
  6. SET hashtoolopt=-none -crc32 -md5 -sha1 -tiger
  7. SET files=*.mp3
  8. PUSHD %dest%
  9. FOR /D %%f IN (*) DO (PUSHD %%f && TITLE GAIN ANALYSIS %%f && %gaintool% %gaintoolopt% %files% && TITLE HASH ANALYSIS %%f && %hashtool% %hashtoolopt% %files% >> "%%f.hash.txt" && POPD)