REM Type: Batch File REM Created by: MAK REM Contact: mak_999@yahoo.com REM Execute Check1.bat for every servers listed in Serverlist.txt Echo Servers error status > c:\CheckReboot\ErrorStatus.log Echo Checking servers that are re-booted - Started date/t > c:\CheckReboot\SuccessReboot.log time/t >> c:\CheckReboot\SuccessReboot.log for /f "tokens=1,2,3 delims=," %%i in (C:\CheckReboot\Serverlist.txt) do CALL "C:\CheckReboot\check1.bat" %%i c:\CheckReboot\sendsmtp.vbs "mak_999@yahoo.com" "c:\checkreboot\ErrorStatus.log" "Reboot status Failures" c:\CheckReboot\sendsmtp.vbs "mak_999@yahoo.com" "c:\checkreboot\SuccessReboot.log" "Reboot status Success"