hvorost,
Код:
@echo off
setlocal
for /f %%i in ('date /t') do set "file=%%i.log"
for %%i in (in out) do (
for /f "tokens=*" %%j in ('findstr /i "\<error\>" "%%i %file%"') do 1>>sendmail echo support@%%j
for /f "tokens=*" %%j in ('findstr /i "\<not.connect\>" "%%i %file%"') do 1>>sendmail echo support@%%j
)
Попробуй. Если нет спецсимволоа, то все должно работать