@echo off
md %1
move %1.* %1\
cd %1
"C:\Program Files\WinRAR\"rar a -m0 -v50000k %1.rar %1.iso
dir /a-d | find /c ".rar" > NUMfiles.###
set /p Count=<NUMfiles.### 
echo Create PAR2-files for: %Count% RAR-files? This may take some time! 
echo (Press CTRL-C to Abort or Press Enter to Continue)
Pause
REM ### par2 = par2+TBB = uses agressive threading, 
REM ##         gets a Core i7 920 responding slow or barely unless you renice the process priority to "Low"
REM ### phpar2 = nicer for your machine but a bit slower, more reliable if you want to keep using your machine while parring
par2 create -s1920000 -c%Count% -f0 -l -v %1.par2 *.rar
del NUMfiles.###
