полная версия скрипта для разбора почты

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
rem its our main file!!!!
c:
cd c:\t-mail\files\
echo "%date% %time%" >c:\t-mail\tools\info.txt
rem ----------------------------------------
SET myp=c:\t-mail\files
SET archiver="c:\Program Files (x86)\7-Zip\7z.exe"
rem where is archiver soft placed
SET arcpath=c:\t-mail\files\*.arj
rem where is our received archives placed
SET unarcpath=c:\t-mail\files\unarc
rem where we need to decompress files, and from where must compress
SET unarcdirs=c:\t-mail\files\unarc\*.*
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
for %%I in (%arcpath%) do xcopy "%%I" v:\ /y && del "%%I" >>c:\t-mail\tools\info.txt
rem -------------------------------------
del /q c:\t-mail\files\unarc\152\*.*
move /Y c:\t-mail\files\unarc\153\*.* c:\T-MAIL\FBOXES\0903C001.K1H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\154\*.* c:\T-MAIL\FBOXES\0903C001.K2H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\155\*.* c:\T-MAIL\FBOXES\0903C001.K3H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\156\*.* c:\T-MAIL\FBOXES\0903C001.K4H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\157\*.* c:\T-MAIL\FBOXES\0903C001.K5H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\158\*.* c:\T-MAIL\FBOXES\0903C001.K6H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\159\*.* c:\T-MAIL\FBOXES\0903C001.K7H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\160\*.* c:\T-MAIL\FBOXES\0903C001.K8H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\161\*.* c:\T-MAIL\FBOXES\0903C001.K9H\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\162\*.* c:\T-MAIL\FBOXES\0903C001.KAH\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\163\*.* c:\T-MAIL\FBOXES\0903C001.KBH\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\165\*.* c:\T-MAIL\FBOXES\0903C001.KCH\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\164\*.* c:\T-MAIL\FBOXES\0903C001.KDH\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\166\*.* c:\T-MAIL\FBOXES\0903C001.KEH\ >>c:\t-mail\tools\info.txt
move /Y c:\t-mail\files\unarc\167\*.* c:\T-MAIL\FBOXES\0903C001.KFH\ >>c:\t-mail\tools\info.txt
c:
cd C:\T-MAIL\tools\
@blat -to postmaster@zp.kuib.fin -subject T-MAIL -body "T-mail finished" -server mail.local.lan:218 -f TMAIL@zp.kuib.fin -charset cp-1251 -attach c:\t-mail\tools\info.txt
@blat -to sv_bezsala@zp.kuib.fin -subject T-MAIL -body "T-mail finished" -server mail.local.lan:218 -f TMAIL@zp.kuib.fin -charset cp-1251
@blat -to s_usik@zp.kuib.fin -subject T-MAIL -body "T-mail finished" -server mail.local.lan:218 -f TMAIL@zp.kuib.fin -charset cp-1251
@blat -to n_maluga@zp.kuib.fin -subject T-MAIL -body "T-mail finished" -server mail.local.lan:218 -f TMAIL@zp.kuib.fin -charset cp-1251
:skipmail