HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/bin/fullbackup/sendemail.cmd.bak
itpSendEmail low surinder@itpartnership.com fullbackup@itpartnership.com "Full Backup Results" logtoday.txt

rem check for success
rem check if certain phrases exist, error if they do
find /i "550 RNFR command failed." logtoday.txt
if ERRORLEVEL 1 goto ok1 
goto error1
:ok1
find /i "451 Failure writing to local file." logtoday.txt
if ERRORLEVEL 1 goto ok2
goto error1
:ok2
find /i "553 Could not create file." logtoday.txt
if ERRORLEVEL 1 goto ok3
goto error1
:ok3

rem check if certain phrases don't exist, error if they don't

find /i "230 Login successful." logtoday.txt
if ERRORLEVEL 1 goto error1

find /i "226 File receive OK." logtoday.txt
if ERRORLEVEL 1 goto error1

find /i "250 Rename successful." logtoday.txt
if ERRORLEVEL 1 goto error1

rem success if this point reached
goto end

:error1
itpSendEmail high purchases@itpartnership.com fullbackup@itpartnership.com "ITP ALERT!!! Full Backup FTP Failure" logtoday.txt

:end

pause