1.bat
@echo off
cd /D E:\sendmail2013
ping -n 1 172.16.50.97 | findstr out. > pingout.txt
for /f %%a in (pingout.txt) do sendmail.bat
exit
sendmail.bat
cd /D E:\sendmail2013
del -f jpg.rar
for /f "skip=190" %%a in ('dir E:\old\screen_jpg\*.* /b/O') do rar.exe a -ep jpg.rar E:\old\screen_jpg\%%a
cscript //h:cscript //s
call sendmail.vbs
exit