I'm looking for a way to send an email from an NT batch file upon an error. Can anyone tell me the syntax? My reference books are not helping. Thanks!
Example of what I'd like to do....
FINDSTR "INSERTED" %spoolfile%
IF %ERRORLEVEL% NEQ 0 (
ECHO There was a problem inserting a row
rem <<< Send an email here >>>
GOTO ENDIT
) ELSE (
ECHO Proceeding
)
Example of what I'd like to do....
FINDSTR "INSERTED" %spoolfile%
IF %ERRORLEVEL% NEQ 0 (
ECHO There was a problem inserting a row
rem <<< Send an email here >>>
GOTO ENDIT
) ELSE (
ECHO Proceeding
)