Hi all! I have a log file and I want to send it automatically to a specific e-mail address when some conditions are true. Ok, this is easy with SENDMAIL command. But I have a Huawei 3G modem so my Internet connection may be in offline. What's the easiest way to detect if it's in offline or online? I mean, I want to make something like this: IFF %_CONNECTED == 1 THEN ECHO %_TIME - Sending log file. SENDMAIL "email@example.com" Log @Log.log ECHO %_TIME - Ok. ELSE ECHO %_TIME - No Internet connection. Log didn't sent. ENDIFF Yes, _CONNECTED doesn't exist, but does some else? I have: TCC 9,02.157 Windows Vista [Version 6,0,6002] TCC Build 157 Windows Vista Build 6002 Service Pack 2 Thanks forehand! -Mikko.