@ECHO OFF SET dest="G:\EXPERIMENT\Classical\Classical Masterpieces of the Millennium" SET gaintool="C:\program files\react2\tools\metamp3.exe" SET gaintoolopt=--replay-gain SET hashtool="C:\Program Files\ReHash\rehash.exe" SET hashtoolopt=-none -crc32 -md5 -sha1 -tiger SET files=*.mp3 PUSHD %dest% 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)