@echo off set IP=%1 set MESSAGE=%2 echo %MESSAGE% | find /C "Contact" echo %ERRORLEVEL% if %ERRORLEVEL% EQU 0 posdamio.exe -o 1=ON %IP% goto eof :eof