Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT Batch and Outlook

Status
Not open for further replies.

bullrider

Programmer
Joined
Sep 14, 2001
Messages
6
Location
US
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
)


 
I cannot see the code/text you intended to share
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top