<br />:: Make sure it is ran in the same direcorty as all the accompanying .exe files. <br />:: This script will check that your site is up, please see the commented instructions below. <br /> <br />:TOP <br />@echo off <br />IF EXIST status.txt DEL status.txt <br />echo | time /t <br />::Type in your site name below. <br />ping socaps.com >status.txt <br />echo | time /t >>status.txt <br />::Type in your IP address below. <br />type status.txt | find /i "64.62.140.213" <br />echo Searching string... <br />if %errorlevel% EQU 1 GOTO DROP <br />if %errorlevel% EQU 0 GOTO RESTART <br /> <br />:DROP <br />echo Your site is not responding. Proceeding to send a message.. <br />::Optional: uncomment the next line to send a popup message to yourself, Messenger service must be started. <br />::net send localhost Your site is currently unavailabe! <br />::Fill in the info below with your information, you may want to use a differnt email than what's on your site. <br />postie.exe -host:mail.yourserver.com -to:you@yoursite.com -from:"you@yoursite.com" -s:"Down Message" -msg:"Your Site is currently unavailable!" <br />echo Message sent. <br />choice Run this script again? <br />if %errorlevel% EQU 1 GOTO TOP <br />IF %ERRORLEVEL% EQU 2 GOTO EOF <br />GOTO EOF <br /> <br /> <br />:RESTART <br />echo Received a response. <br />sleep 2 <br />echo Sleeping... <br />sleep 60 <br />cls <br />GOTO TOP <br /> <br />:EOF <br />