пересортировка почты по расширению. предполагается, что есть набор папок, имена которых = расширениям

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
SET archiver="c:\Program Files (x86)\7-Zip\7z.exe"
rem where is archiver soft placed
SET arcpath=*.arj
rem where is our received archives placed
SET unarcpath=unarc
rem where we need to decompress files
SET unarcdirs=unarc\*.*
rem and from where must compress
for %%I in (%arcpath%) do for /D %%J in (%unarcdirs%) do %archiver% e "%%I" -y -o%unarcpath%\%%~nJ *.%%~nJ && %archiver% a -tzip -mx9 %unarcpath%\%%~nJ\%%~nI.zip %unarcpath%\%%~nJ\*.%%~nJ && del %unarcpath%\%%~nJ\*.%%~nJ